Browse Source

Catch if nothing has been read from the socket

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

4
wii-pair/daemon.py

@ -189,6 +189,10 @@ try:
conns.remove(sock) conns.remove(sock)
continue continue
if len(m) == 0:
conns.remove(sock)
continue
r = b'' r = b''
for w in wiis: for w in wiis:
if m[0] == ord('w'): if m[0] == ord('w'):

Loading…
Cancel
Save