Mercurial > xib
changeset 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 | e7766a49b199 |
files | bot.py irclib.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
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