Merge branch 'master' of https://git.kmlabz.com/BiztProtoBois/server
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:
@@ -104,8 +104,10 @@ class NetWrapper:
|
||||
return b"LINOK"
|
||||
else:
|
||||
self.logout()
|
||||
return b"LINERROR"
|
||||
except Exception:
|
||||
self.logout()
|
||||
return b"LINERROR"
|
||||
|
||||
def recieveMessage(self) -> bytes:
|
||||
status, msg = self.network.receive_msg(blocking=True)
|
||||
@@ -117,6 +119,7 @@ class NetWrapper:
|
||||
return self.recieveEncryptedMessage(msg)
|
||||
|
||||
def logout(self) -> None:
|
||||
self.serverInstance.logout()
|
||||
self.clientAddr = ""
|
||||
self.cipherkey = "".encode('UTF-8')
|
||||
self.currentClientPublicKey = "".encode('UTF-8')
|
||||
|
||||
Reference in New Issue
Block a user