comparison bot.py @ 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
comparison
equal deleted inserted replaced
45:41394ddb3aff 46:d29171ab2df1
75 try: 75 try:
76 try: 76 try:
77 if len(self.xmpp_connections) == 1: 77 if len(self.xmpp_connections) == 1:
78 sleep(0.5) # avoid bot connection being locked all the time 78 sleep(0.5) # avoid bot connection being locked all the time
79 for c in self.xmpp_connections.itervalues(): 79 for c in self.xmpp_connections.itervalues():
80 if hasattr(c, 'Process') and c.lock.acquire(blocking=False) == True: 80 if hasattr(c, 'Process'):
81 c.lock.acquire() 81 c.lock.acquire()
82 c.Process(0.5) 82 c.Process(0.5)
83 c.lock.release() 83 c.lock.release()
84 except RuntimeError: 84 except RuntimeError:
85 pass 85 pass