0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-06-01 03:59:03 +02:00
This commit is contained in:
Till Faelligen 2024-04-08 20:50:48 +02:00
parent 1f723362c0
commit 43ac98dfbe
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -295,7 +295,7 @@ func (oq *destinationQueue) checkNotificationsOnClose() {
// backgroundSend is the worker goroutine for sending events.
func (oq *destinationQueue) backgroundSend() {
// Don't try to send transactions if we are shutting down.
if oq.process.Context() != nil {
if oq.process.Context().Err() != nil {
return
}
// Check if a worker is already running, and if it isn't, then