3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

Irc: break out of processQueue properly when a network disconnects

This commit is contained in:
James Lu 2017-05-09 23:31:20 -07:00
parent 701f01fa4f
commit 7daef0000b

View File

@ -184,8 +184,9 @@ class Irc(utils.DeprecatedAttributesObject):
self._send(data)
except queue.Empty:
pass
log.debug('(%s) Stopping queue thread as aborted is set', self.name)
else:
log.debug('(%s) Stopping queue thread as aborted is set', self.name)
break
def connect(self):
"""