Browse Source

Pokemon exception handling for sockets

master
klonfish 8 years ago committed by klonfish
parent
commit
45d4c8aefb
  1. 4
      wii-pair/daemon.py

4
wii-pair/daemon.py

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

Loading…
Cancel
Save