From 08b994a755ba941b054d90d40d01293a3ac69062 Mon Sep 17 00:00:00 2001 From: "Luis Gustavo S. Barreto" Date: Wed, 31 Jan 2018 16:30:44 -0200 Subject: [PATCH] ProbeState: disable ASAP mode in case of ProbeUpdate success Signed-off-by: Luis Gustavo S. Barreto --- updatehub/probe_state.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/updatehub/probe_state.go b/updatehub/probe_state.go index be1bdf92..294b7ad4 100644 --- a/updatehub/probe_state.go +++ b/updatehub/probe_state.go @@ -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 }