mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Fix backoff bug
This commit is contained in:
parent
a14b29b526
commit
a854e3aa18
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ func (oq *destinationQueue) backgroundSend() {
|
||||||
log.Warnf("Blacklisting %q due to exceeding backoff threshold", oq.destination)
|
log.Warnf("Blacklisting %q due to exceeding backoff threshold", oq.destination)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if until != nil {
|
if until != nil && until.After(time.Now()) {
|
||||||
// We haven't backed off yet, so wait for the suggested amount of
|
// We haven't backed off yet, so wait for the suggested amount of
|
||||||
// time.
|
// time.
|
||||||
duration := time.Until(*until)
|
duration := time.Until(*until)
|
||||||
|
|
Loading…
Reference in a new issue