Unverified Commit 824f7264 authored by Steven Allen's avatar Steven Allen Committed by GitHub

fix: ensure we shutdown the message queue asap (#362)

parent 9fc4a368
......@@ -333,7 +333,7 @@ func (mq *MessageQueue) runQueue() {
}
var workScheduled time.Time
for {
for mq.ctx.Err() == nil {
select {
case <-mq.rebroadcastTimer.C:
mq.rebroadcastWantlist()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment