fix recievemessage api
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c61ea16c02
commit
281af0fb2e
@ -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.')
|
||||
|
Loading…
Reference in New Issue
Block a user