# HG changeset patch # User Charly COSTE # Date 1251140854 -7200 # Node ID d29171ab2df11006178e48db425a7579a1aab849 # Parent 41394ddb3affb1b19ed1110c34cff6ec1eedb8f2 Removed unnecessary and buggy test Signed-off-by: Charly COSTE diff --git a/bot.py b/bot.py --- a/bot.py +++ b/bot.py @@ -77,7 +77,7 @@ class bot(Thread): if len(self.xmpp_connections) == 1: sleep(0.5) # avoid bot connection being locked all the time for c in self.xmpp_connections.itervalues(): - if hasattr(c, 'Process') and c.lock.acquire(blocking=False) == True: + if hasattr(c, 'Process'): c.lock.acquire() c.Process(0.5) c.lock.release()