diff --git a/wii-pair/daemon.py b/wii-pair/daemon.py index eef1002..34cd010 100755 --- a/wii-pair/daemon.py +++ b/wii-pair/daemon.py @@ -189,6 +189,10 @@ try: conns.remove(sock) continue + if len(m) == 0: + conns.remove(sock) + continue + r = b'' for w in wiis: if m[0] == ord('w'):