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