changeset 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 266a6afb6b79
children 7af07b7bf6fd
files start_bots_from_xml_config.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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()