mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 09:52:20 +08:00
making the daemon shutdown quicker
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
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