Smoke test passes.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 20 Oct 2013 21:44:57 +0000 (17:44 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 20 Oct 2013 21:44:57 +0000 (17:44 -0400)
irkerd

diff --git a/irkerd b/irkerd
index 4b63eb8ecc55bf6c52eadfad15a8038bdd5cb3fb..33e480d56ae04a156f781faad0ebd12426f19202 100755 (executable)
--- a/irkerd
+++ b/irkerd
@@ -128,8 +128,9 @@ class IRCClient():
         # the shared state of an IRC object running this function.
         while True:
             with self.mutex:
-                sockets = [x.socket for x in self.server_connections if x is not None]
-                sockets = [x for x in sockets if x is not None]
+                connected = [x for x in self.server_connections
+                             if x is not None and x.socket is not None]
+                sockets = [x.socket for x in connected]
                 if sockets:
                     (insocks, _o, _e) = select.select(sockets, [], [], timeout)
                     for s, c in itertools.product(insocks, self.server_connections):