bitswap: finish unsubscribing from the pubsub instance before shutting it down
Otherwise, we'll deadlock and leak a goroutine. This fix is kind of crappy but
modifying the pubsub library would have been worse (and, really, it *is*
reasonable to say "don't use the pubsub instance after shutting it down").
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Showing
Please register or sign in to comment