Fix deadlock

This commit is contained in:
Neil Alexander 2020-12-08 15:57:18 +00:00
parent 029f9ce522
commit 1d868763f8
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -287,7 +287,7 @@ func (oq *destinationQueue) backgroundSend() {
}
oq.pendingPDUs = nil
oq.pendingEDUs = nil
oq.pendingMutex.Lock()
oq.pendingMutex.Unlock()
return
}
if until != nil && until.After(time.Now()) {