Remove unnecessary mutex lock.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 20 Oct 2013 21:42:27 +0000 (17:42 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 20 Oct 2013 21:42:27 +0000 (17:42 -0400)
irkerd

diff --git a/irkerd b/irkerd
index ec86d80fab38ebdb18b5e49496880a3fa50b7c83..4b63eb8ecc55bf6c52eadfad15a8038bdd5cb3fb 100755 (executable)
--- a/irkerd
+++ b/irkerd
@@ -132,10 +132,9 @@ class IRCClient():
                 sockets = [x for x in sockets if x is not None]
                 if sockets:
                     (insocks, _o, _e) = select.select(sockets, [], [], timeout)
-                    with self.mutex:
-                        for s, c in itertools.product(insocks, self.server_connections):
-                            if s == c.socket:
-                                c.consume()
+                    for s, c in itertools.product(insocks, self.server_connections):
+                        if s == c.socket:
+                            c.consume()
 
                 else:
                     time.sleep(timeout)