plugin/file: fix zone expiration (#1933)
This commit is contained in:
parent
ee3c9894d9
commit
063e673bc4
1 changed files with 15 additions and 12 deletions
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue