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

@ -36,8 +36,8 @@ class BaseSession(ISecureConn):
async def read(self, n: int = -1) -> bytes:
return await self.conn.read(n)
def close(self) -> None:
self.conn.close()
async def close(self) -> None:
await self.conn.close()
def get_local_peer(self) -> ID:
return self.local_peer