comparison start_bots_from_xml_config.py @ 161:c021656e4c54

minor fix in start_bots_from_xml_config.py Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Tue, 19 Jan 2010 20:50:42 +0100
parents 63db565438bd
children 489c157d9e82
comparison
equal deleted inserted replaced
160:266a6afb6b79 161:c021656e4c54
83 print 'No bots in the configuration file, exiting ...' 83 print 'No bots in the configuration file, exiting ...'
84 exit(0) 84 exit(0)
85 85
86 while True: 86 while True:
87 for bot in bots: 87 for bot in bots:
88 if len(bot.xmpp_connections) == 0: 88 if bot.halt and len(bot.xmpp_connections) == 0:
89 bots.remove(bot) 89 bots.remove(bot)
90 if len(bots) == 0: 90 if len(bots) == 0:
91 raise Exception() 91 raise Exception()
92 sleep(10) 92 sleep(10)
93 except: 93 except: