mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
Irc: break out of processQueue as soon as self.aborted is set
This commit is contained in:
parent
af3b350498
commit
e3c0bf6a1b
@ -179,7 +179,8 @@ class Irc(utils.DeprecatedAttributesObject):
|
||||
data = self.queue.popleft()
|
||||
self._send(data)
|
||||
throttle_time = self.serverdata.get('throttle_time', 0.01)
|
||||
time.sleep(throttle_time)
|
||||
self.aborted.wait(throttle_time)
|
||||
log.debug('(%s) Stopping queue thread as aborted is set', self.name)
|
||||
|
||||
def connect(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user