Browse Source

Maybe even better andling of connection reset error

feature/balanceutils
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: @@ -173,7 +173,10 @@ try:
conn, addr = s.accept()
while True:
try:
m = conn.recv(1)
except ConnectionResetError:
break
if len(m) == 0:
conn.close()

Loading…
Cancel
Save