Commit c301bd5c authored by alemate's avatar alemate Committed by Commit bot

Fix DCHECK in network portal detector.

BUG=652908
TEST=none

Review-Url: https://codereview.chromium.org/2394663004
Cr-Commit-Position: refs/heads/master@{#423028}
parent 930eb30a
...@@ -549,7 +549,10 @@ void NetworkPortalDetectorImpl::OnAttemptCompleted( ...@@ -549,7 +549,10 @@ void NetworkPortalDetectorImpl::OnAttemptCompleted(
same_detection_result_count_ >= kMaxOfflineResultsBeforeReport) { same_detection_result_count_ >= kMaxOfflineResultsBeforeReport) {
OnDetectionCompleted(network, state); OnDetectionCompleted(network, state);
} }
ScheduleAttempt(results.retry_after_delta);
// Observers (via OnDetectionCompleted) may already schedule new attempt.
if (is_idle())
ScheduleAttempt(results.retry_after_delta);
} }
void NetworkPortalDetectorImpl::Observe( void NetworkPortalDetectorImpl::Observe(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment