Update server.py

This commit is contained in:
Nova Cat 2024-12-12 13:37:45 -08:00
parent 6c1a890670
commit 0a0fc636fd

View file

@ -449,6 +449,7 @@ def session(connection, client):
print(traceback.format_exc()) print(traceback.format_exc())
try: try:
while opened: while opened:
print("Waiting for connection...")
connection, client = tcp_socket.accept() connection, client = tcp_socket.accept()
threading.Thread(target=session, daemon=True, args=[connection, client]).start() threading.Thread(target=session, daemon=True, args=[connection, client]).start()
except: except: