Mercurial > xib
changeset 46:d29171ab2df1
Removed unnecessary and buggy test
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Mon, 24 Aug 2009 21:07:34 +0200 |
parents | 41394ddb3aff |
children | dd9d93ae405a |
files | bot.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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()