diff bot.py @ 35:ebf516b2e5c9

Switched from Lock() to RLock(). Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 23 Aug 2009 00:38:01 +0200
parents 57d0e66378b0
children 7e500d4064fb
line wrap: on
line diff
--- a/bot.py
+++ b/bot.py
@@ -426,7 +426,7 @@ class bot(Thread):
 			return c
 		self.error('===> Debug: opening new XMPP connection for "'+nickname+'"', debug=True)
 		c = xmpp.client.Client(self.bare_jid.getDomain(), debug=[])
-		c.lock = threading.Lock()
+		c.lock = threading.RLock()
 		c.lock.acquire()
 		self.xmpp_connections[nickname] = c
 		c.used_by = 1