Skip to content

Commit

Permalink
Bring changes from #412
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Mar 28, 2023
1 parent bb774cf commit 56e9bb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions messagequeue/messagequeue.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ func (mq *MessageQueue) sendMessage() {
log.Infof("cant open message sender to peer %s: %s", mq.p, err)
// TODO: cant connect, what now?
mq.publishError(metadata, fmt.Errorf("cant open message sender to peer %s: %w", mq.p, err))
select {
case <-mq.done:
default:
mq.Shutdown()
}
return
}

Expand Down

0 comments on commit 56e9bb6

Please sign in to comment.