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:
|
while True:
|
||||||
try:
|
try:
|
||||||
data = connection.recv(2048)
|
data = connection.recv(2048)
|
||||||
except:
|
except Exception as ex:
|
||||||
print("Disconnected.")
|
cause = "Read error: " + str(ex)
|
||||||
|
break
|
||||||
print("Received data: {}".format(data))
|
print("Received data: {}".format(data))
|
||||||
try:
|
try:
|
||||||
textt = data.decode()
|
textt = data.decode()
|
||||||
|
|
Loading…
Reference in a new issue