fix bad file descriptor

This commit is contained in:
Nova Cat 2024-12-09 21:58:05 -08:00
parent 3bb1cf006d
commit 88369b1243

View file

@ -65,8 +65,9 @@ def session(connection, client):
while True:
try:
data = connection.recv(2048)
except:
print("Disconnected.")
except Exception as ex:
cause = "Read error: " + str(ex)
break
print("Received data: {}".format(data))
try:
textt = data.decode()