From f10f5bee52c395ef93e5032a90cf41d78531590b Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 21 Mar 2018 21:05:14 -0700 Subject: [PATCH] selectdriver: actually, force a disconnect when _run_irc() fails --- selectdriver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selectdriver.py b/selectdriver.py index 5d2e85f..ae7be0e 100644 --- a/selectdriver.py +++ b/selectdriver.py @@ -24,6 +24,8 @@ def _process_conns(): irc._run_irc() except: log.exception('Error in select driver loop:') + if not irc._aborted.is_set(): + irc.disconnect() continue def register(irc):