Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Err()...
Browse files Browse the repository at this point in the history
  • Loading branch information
S7evinK committed Apr 8, 2024
1 parent 1f72336 commit 43ac98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion federationapi/queue/destinationqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43ac98d

Please sign in to comment.