Mercurial > xib
comparison 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 |
comparison
equal
deleted
inserted
replaced
34:57d0e66378b0 | 35:ebf516b2e5c9 |
---|---|
434 self.nick(self.real_nickname, callback=nick_callback) | 434 self.nick(self.real_nickname, callback=nick_callback) |
435 self.lock.release() | 435 self.lock.release() |
436 return self | 436 return self |
437 | 437 |
438 | 438 |
439 self.lock = threading.Lock() | 439 self.lock = threading.RLock() |
440 self.lock.acquire() | 440 self.lock.acquire() |
441 self.nick_callbacks = [] | 441 self.nick_callbacks = [] |
442 self.previous_buffer = "" | 442 self.previous_buffer = "" |
443 self.handlers = {} | 443 self.handlers = {} |
444 self.real_server_name = "" | 444 self.real_server_name = "" |