Add call to wait_closed method of asyncio.StreamWriter

This commit is contained in:
Alex Stokes
2019-08-24 22:06:24 +02:00
parent d9883ee4f0
commit 5b32bfdd3f
6 changed files with 12 additions and 11 deletions

View File

@ -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:
"""