Skip to content

Commit

Permalink
Bring changes from #412
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero authored and rvagg committed Mar 29, 2023
1 parent d4f0517 commit a5f79a5
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 a5f79a5

Please sign in to comment.