diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-07-18 15:52:45 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-07-18 15:52:45 +0800 |
| commit | bf95e496e2f03fcffb9c6043307f13c99a18d8d0 (patch) | |
| tree | ccc96e947c54f1d715743bbbad407c8744ca7957 | |
| parent | 5928148b3016baef3467e2039f1e07c8edaff5dc (diff) | |
fixes
| -rw-r--r-- | main.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -28,7 +28,7 @@ muted = [] def stop(self): client_thread.join() - server_thread.join() + main.join() self.running = False socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect( (self.hostname, self.port)) @@ -243,8 +243,8 @@ try: with open(f"{HOME}/scripts/logs/chat.log", "w") as log_file: log_file.truncate(0) try: - server_thread = threading.Thread(target=accept_connections) - server_thread.start() + main = threading.Thread(target=accept_connections) + main.start() #client_socket, client_address = server_socket.accept() #handle_client(client_socket, client_address) except KeyboardInterrupt: |
