diff --git a/federationsender/queue/queue.go b/federationsender/queue/queue.go index d91b36bba..8cd9e9b47 100644 --- a/federationsender/queue/queue.go +++ b/federationsender/queue/queue.go @@ -183,6 +183,8 @@ func (oqs *OutgoingQueues) clearQueue(destination gomatrixserverlib.ServerName) case oq.backingOff.Load(): return } + close(oq.notify) + close(oq.interruptBackoff) delete(oqs.queues, destination) destinationQueueTotal.Dec() }