Index: src/service.cc |
diff --git a/src/service.cc b/src/service.cc |
index e2562ee7322f2b6ae8d0a41b63ad53f1278c2695..0735bfc55f6252a2fb301027e487b33168a959db 100644 |
--- a/src/service.cc |
+++ b/src/service.cc |
@@ -496,11 +496,12 @@ void Service::RequestUsageUpdate() { |
// allows this request (e.g., if we can only make API requests over the |
// cellular service itself, is this service the default route?) |
+ request_in_progress_ = true; |
if (!provider_->RequestUsageUpdate()) { |
DLOG(WARNING) << path_ << ": RequestUsageUpdate: request failed"; |
+ request_in_progress_ = false; |
} else { |
DLOG(INFO) << path_ << ": RequestUsageUpdate: request succeeded"; |
- request_in_progress_ = true; |
} |
} |