3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 20:22:45 +01:00

selectdriver: actually, force a disconnect when _run_irc() fails

This commit is contained in:
James Lu 2018-03-21 21:05:14 -07:00
parent 989259af97
commit f10f5bee52

View File

@ -24,6 +24,8 @@ def _process_conns():
irc._run_irc() irc._run_irc()
except: except:
log.exception('Error in select driver loop:') log.exception('Error in select driver loop:')
if not irc._aborted.is_set():
irc.disconnect()
continue continue
def register(irc): def register(irc):