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):