Attempt to fix the double say and disconnect bug, thanks to theli-ua and tanto
parent
0908b6a61d
commit
8a0d0dd9f0
5
irc.py
5
irc.py
|
@ -42,6 +42,11 @@ class Bot(asynchat.async_chat):
|
||||||
import threading
|
import threading
|
||||||
self.sending = threading.RLock()
|
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):
|
# def push(self, *args, **kargs):
|
||||||
# asynchat.async_chat.push(self, *args, **kargs)
|
# asynchat.async_chat.push(self, *args, **kargs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue