1
0
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:
Juan Batiz-Benet
2015-07-14 15:55:07 -07:00
3 changed files with 13 additions and 7 deletions

View File

@ -140,6 +140,8 @@ func (mq *msgQueue) runQueue(ctx context.Context) {
mq.doWork(ctx)
case <-mq.done:
return
case <-ctx.Done():
return
}
}
}