From 6ad44a20d3f4ddb91b6c2fc970abcddf5f5c5a27 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 30 Nov 2013 14:29:45 -0500 Subject: [PATCH] Remove unecessary elaboration. --- irkerd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irkerd b/irkerd index 8fc1d65..a05d0bb 100755 --- a/irkerd +++ b/irkerd @@ -121,12 +121,12 @@ class IRCClient(): self.server_connections.append(conn) return conn - def spin(self, predicate=None, timeout=0.2): + def spin(self, timeout=0.2): "Spin processing data from connections forever." # Outer loop should specifically *not* be mutex-locked. # Otherwise no other thread would ever be able to change # the shared state of an IRC object running this function. - while predicate is None or predicate(): + while True; with self.mutex: connected = [x for x in self.server_connections if x is not None and x.socket is not None] -- 2.26.2