From e70324ed11c93aeb4331faa654a76a5cf4387e7c Mon Sep 17 00:00:00 2001 From: Pedro Ferreira Date: Sun, 30 Jul 2017 22:38:24 +0200 Subject: [PATCH] Make disconnect() synchronous --- secret_handshake/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secret_handshake/network.py b/secret_handshake/network.py index 21495f9..92e5f82 100644 --- a/secret_handshake/network.py +++ b/secret_handshake/network.py @@ -40,7 +40,7 @@ class SHSSocket(object): async def read(self): return await self.read_stream.read() - async def disconnect(self): + def disconnect(self): self.writer.close() async def __aiter__(self):