Close channels

This commit is contained in:
Neil Alexander 2021-02-17 13:22:09 +00:00
parent c6c5c553dd
commit c2e92d0237
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -183,6 +183,8 @@ func (oqs *OutgoingQueues) clearQueue(destination gomatrixserverlib.ServerName)
case oq.backingOff.Load(): case oq.backingOff.Load():
return return
} }
close(oq.notify)
close(oq.interruptBackoff)
delete(oqs.queues, destination) delete(oqs.queues, destination)
destinationQueueTotal.Dec() destinationQueueTotal.Dec()
} }