diff 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
line wrap: on
line diff
--- a/start_bots_from_xml_config.py
+++ b/start_bots_from_xml_config.py
@@ -85,7 +85,7 @@ try:
 	
 	while True:
 		for bot in bots:
-			if len(bot.xmpp_connections) == 0:
+			if bot.halt and len(bot.xmpp_connections) == 0:
 				bots.remove(bot)
 		if len(bots) == 0:
 			raise Exception()