mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Apply PR feedback
This commit is contained in:
@ -53,5 +53,6 @@ class RawConnection(IRawConnection):
|
||||
|
||||
async def close(self) -> None:
|
||||
self.writer.close()
|
||||
if sys.version_info[0:2] > (3, 6):
|
||||
await self.writer.wait_closed()
|
||||
if sys.version_info < (3, 7):
|
||||
return
|
||||
await self.writer.wait_closed()
|
||||
|
||||
Reference in New Issue
Block a user