fix bad file descriptor
This commit is contained in:
parent
3bb1cf006d
commit
88369b1243
1 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue