Skip to content

Commit

Permalink
Merge pull request #188 from gustavosbarreto/disable_asap
Browse files Browse the repository at this point in the history
ProbeState: disable ASAP mode in case of ProbeUpdate success
  • Loading branch information
otavio committed Jan 31, 2018
2 parents b58bb3c + 08b994a commit 45c5010
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions updatehub/probe_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,9 @@ func (state *ProbeState) Handle(uh *UpdateHub) (State, bool) {
default:
}

// Reset polling retries in case of ProbeUpdate success
// Reset polling retries and disable ASAP mode in case of ProbeUpdate success
if state.probeExtraPoll != -1 {
uh.Settings.PollingRetries = 0
}

if uh.Settings.ProbeASAP {
uh.Settings.ProbeASAP = false
}

Expand Down

0 comments on commit 45c5010

Please sign in to comment.