mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 09:52:20 +08:00
Merge pull request #1478 from ipfs/fix/slow-stop
making the daemon shutdown quicker
This commit is contained in:
@ -140,6 +140,8 @@ func (mq *msgQueue) runQueue(ctx context.Context) {
|
||||
mq.doWork(ctx)
|
||||
case <-mq.done:
|
||||
return
|
||||
case <-ctx.Done():
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user