mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Add call to wait_closed method of asyncio.StreamWriter
This commit is contained in:
@ -69,11 +69,11 @@ class Mplex(IMuxedConn):
|
||||
def initiator(self) -> bool:
|
||||
return self.conn.initiator
|
||||
|
||||
def close(self) -> None:
|
||||
async def close(self) -> None:
|
||||
"""
|
||||
close the stream muxer and underlying raw connection
|
||||
"""
|
||||
self.conn.close()
|
||||
await self.conn.close()
|
||||
|
||||
def is_closed(self) -> bool:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user