From 281af0fb2e5a26916740c4ef1e35b8318d720894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sat, 24 Apr 2021 23:36:59 +0200 Subject: [PATCH] fix recievemessage api --- client/netwrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/netwrapper.py b/client/netwrapper.py index 4ac8d85..20da3a1 100644 --- a/client/netwrapper.py +++ b/client/netwrapper.py @@ -102,7 +102,7 @@ class NetWrapper: sendjson = json.dumps({'type': 'CMD', 'source': self.network.own_addr, 'nonce': nonce, 'message': ct}).encode('UTF-8') self.network.send_msg(self.serverAddr,sendjson) - def recieveMessage(self, message: bytes) -> bytes: + def recieveMessage(self) -> bytes: status, msg = self.network.receive_msg(blocking=True) if not status: raise Exception('Network error during connection.')