From: Eric S. Raymond Date: Sun, 20 Oct 2013 21:42:27 +0000 (-0400) Subject: Remove unnecessary mutex lock. X-Git-Tag: 2.0~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a047e96488e3052f230b0b5074d14fe2deccfa17;p=irker.git Remove unnecessary mutex lock. --- diff --git a/irkerd b/irkerd index ec86d80..4b63eb8 100755 --- 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)