From 1d868763f85e36b4dea1fe53968d57f51df40a2f Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 8 Dec 2020 15:57:18 +0000 Subject: [PATCH] Fix deadlock --- federationsender/queue/destinationqueue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationsender/queue/destinationqueue.go b/federationsender/queue/destinationqueue.go index 237e50829..31eeaebc5 100644 --- a/federationsender/queue/destinationqueue.go +++ b/federationsender/queue/destinationqueue.go @@ -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()) {