plugin/file: fix zone expiration (#1933)

This commit is contained in:
Isolus 2018-07-03 18:22:00 +02:00 committed by Miek Gieben
parent ee3c9894d9
commit 063e673bc4

View file

@ -147,13 +147,14 @@ Restart:
// transfer failed, leave retryActive true // transfer failed, leave retryActive true
break break
} }
}
// no errors, stop timers and restart
retryActive = false retryActive = false
// transfer OK, possible new SOA, stop timers and redo
refreshTicker.Stop() refreshTicker.Stop()
retryTicker.Stop() retryTicker.Stop()
expireTicker.Stop() expireTicker.Stop()
goto Restart goto Restart
}
case <-refreshTicker.C: case <-refreshTicker.C:
@ -172,13 +173,15 @@ Restart:
retryActive = true retryActive = true
break break
} }
}
// no errors, stop timers and restart
retryActive = false retryActive = false
// transfer OK, possible new SOA, stop timers and redo
refreshTicker.Stop() refreshTicker.Stop()
retryTicker.Stop() retryTicker.Stop()
expireTicker.Stop() expireTicker.Stop()
goto Restart goto Restart
}
} }
} }
} }