Add "closed" and "shutting_down" events

This commit is contained in:
mhchia
2019-09-12 17:07:41 +08:00
parent 7cf0495f37
commit 5653b3f604
3 changed files with 45 additions and 9 deletions

View File

@ -1,6 +1,7 @@
from libp2p.stream_muxer.exceptions import (
MuxedConnError,
MuxedConnShutdown,
MuxedConnShuttingDown,
MuxedConnClosed,
MuxedStreamClosed,
MuxedStreamEOF,
MuxedStreamReset,
@ -11,7 +12,11 @@ class MplexError(MuxedConnError):
pass
class MplexShutdown(MuxedConnShutdown):
class MplexShuttingDown(MuxedConnShuttingDown):
pass
class MplexClosed(MuxedConnClosed):
pass