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