From: Eric S. Raymond Date: Sun, 20 Oct 2013 21:44:57 +0000 (-0400) Subject: Smoke test passes. X-Git-Tag: 2.0~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c9140a07ba0e68e2eb3b24322ad7c0d55bdbd628;p=irker.git Smoke test passes. --- 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):