Fix backoff bug

main
Neil Alexander 2020-09-22 14:53:36 +01:00
parent a14b29b526
commit a854e3aa18
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ func (oq *destinationQueue) backgroundSend() {
log.Warnf("Blacklisting %q due to exceeding backoff threshold", oq.destination)
return
}
if until != nil {
if until != nil && until.After(time.Now()) {
// We haven't backed off yet, so wait for the suggested amount of
// time.
duration := time.Until(*until)