diff irclib.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 4e1f27ea527b
children 9f72353e4064
line wrap: on
line diff
--- a/irclib.py
+++ b/irclib.py
@@ -436,7 +436,7 @@ class ServerConnection(Connection):
             return self
 
 
-        self.lock = threading.Lock()
+        self.lock = threading.RLock()
         self.lock.acquire()
         self.nick_callbacks = []
         self.previous_buffer = ""