fix recievemessage api
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2021-04-24 23:36:59 +02:00
parent c61ea16c02
commit 281af0fb2e
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -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.')