Browse Source

Pokemon exception handling for sockets

feature/balanceutils
klonfish 7 years ago committed by klonfish
parent
commit
45d4c8aefb
  1. 4
      wii-pair/daemon.py

4
wii-pair/daemon.py

@ -184,7 +184,7 @@ try: @@ -184,7 +184,7 @@ try:
for sock in rlist:
try:
m = sock.recv(1)
except ConnectionResetError:
except Exception:
conns.remove(sock)
continue
@ -203,7 +203,7 @@ try: @@ -203,7 +203,7 @@ try:
try:
sock.send(r)
except ConnectionResetError:
except Exception:
conns.remove(sock)
continue

Loading…
Cancel
Save