Update Python client (fix bugs)
This commit is contained in:
parent
8abd2b2b41
commit
78196f209c
@ -31,9 +31,10 @@ class AppController:
|
|||||||
if message_id == Protocol.PARSE_SIGNOK:
|
if message_id == Protocol.PARSE_SIGNOK:
|
||||||
self.window_controller.switch_connected_mode()
|
self.window_controller.switch_connected_mode()
|
||||||
self.show_message("Connection done", False)
|
self.show_message("Connection done", False)
|
||||||
|
self.on_filelist()
|
||||||
elif message_id == Protocol.PARSE_SIGNERROR:
|
elif message_id == Protocol.PARSE_SIGNERROR:
|
||||||
self.show_message("Error during SIGN_IN / SIGN_UP", True)
|
self.show_message("Error during SIGN_IN / SIGN_UP", True)
|
||||||
self.on_filelist()
|
self.connection.close()
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
print(ex)
|
print(ex)
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
@ -107,5 +107,11 @@ class UnicastConnection:
|
|||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
self.sock.close()
|
self.sock.close()
|
||||||
|
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
|
self.is_connected = False
|
||||||
|
self.is_tls = False
|
||||||
|
self.ssock = None
|
||||||
|
self.ca_path = None
|
||||||
|
self.ssl_info = None
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user