Remove unecessary elaboration.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 30 Nov 2013 19:29:45 +0000 (14:29 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 30 Nov 2013 19:29:45 +0000 (14:29 -0500)
irkerd

diff --git a/irkerd b/irkerd
index 8fc1d65a5a992146fbe39ef7a4e4fd0d1992fca5..a05d0bbf7f1018a0f3f2c14f0bf6cfb4a874c939 100755 (executable)
--- 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]