diff options
author | Sean B. Palmer <sean@miscoranda.com> | 2012-05-07 21:33:19 +0100 |
---|---|---|
committer | Sean B. Palmer <sean@miscoranda.com> | 2012-05-07 21:33:19 +0100 |
commit | 8a0d0dd9f0e98b3f2bc7637e0354f8b0a67b6b47 (patch) | |
tree | d9ca38296a87cde73c8f28875d831f907ac50b46 | |
parent | 0908b6a61dac8df774fce26451e508a1efc7841b (diff) | |
download | bot-8a0d0dd9f0e98b3f2bc7637e0354f8b0a67b6b47.tar.gz bot-8a0d0dd9f0e98b3f2bc7637e0354f8b0a67b6b47.tar.bz2 bot-8a0d0dd9f0e98b3f2bc7637e0354f8b0a67b6b47.zip |
Attempt to fix the double say and disconnect bug, thanks to theli-ua and tanto
-rwxr-xr-x | irc.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -42,6 +42,11 @@ class Bot(asynchat.async_chat): import threading self.sending = threading.RLock() + def initiate_send(self): + self.sending.acquire() + asynchat.async_chat.initiate_send(self) + self.sending.release() + # def push(self, *args, **kargs): # asynchat.async_chat.push(self, *args, **kargs) |