Browse Source

Maybe even better andling of connection reset error

master
klonfish 8 years ago committed by klonfish
parent
commit
69b8086996
  1. 3
      wii-pair/daemon.py

3
wii-pair/daemon.py

@ -173,7 +173,10 @@ try:
conn, addr = s.accept() conn, addr = s.accept()
while True: while True:
try:
m = conn.recv(1) m = conn.recv(1)
except ConnectionResetError:
break
if len(m) == 0: if len(m) == 0:
conn.close() conn.close()

Loading…
Cancel
Save