From c9140a07ba0e68e2eb3b24322ad7c0d55bdbd628 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 20 Oct 2013 17:44:57 -0400 Subject: [PATCH] Smoke test passes. --- irkerd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/irkerd b/irkerd index 4b63eb8..33e480d 100755 --- 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): -- 2.26.2