diff bridge.py @ 40:faa468731d8a

Tried to get thread safety and handle disconnections in muc.py Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 23 Aug 2009 22:35:24 +0200
parents 984e1e5c5e51
children 41394ddb3aff
line wrap: on
line diff
--- a/bridge.py
+++ b/bridge.py
@@ -54,7 +54,7 @@ class bridge:
 			raise Exception('[Error] "'+mode+'" is not a correct value for a bridge\'s "mode" attribute')
 		self.mode = mode
 		
-		self.lock = threading.Lock()
+		self.lock = threading.RLock()
 		
 		# Join XMPP room
 		try: