Commit 23802fdf authored by Brian Tiger Chow's avatar Brian Tiger Chow

fix(bitswap) shut down async

parent d42ec402
......@@ -32,11 +32,9 @@ func NetMessageSession(ctx context.Context, p peer.Peer,
notif := notifications.New()
go func() {
for {
select {
case <-ctx.Done():
notif.Shutdown()
}
select {
case <-ctx.Done():
notif.Shutdown()
}
}()
......
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