From 8d15d057113f424040b37fb2a172895f85779f8b Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 5 Aug 2017 22:14:44 -0700 Subject: [PATCH] IRCNetwork: use disconnect() to kill networks if parsing a command errors This is more standard, as aborted is solely an internal value. --- classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes.py b/classes.py index 98d11a3..de9a29a 100644 --- a/classes.py +++ b/classes.py @@ -1326,7 +1326,7 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils): except Exception: log.exception('(%s) Caught error in handle_events, disconnecting!', self.name) log.error('(%s) The offending line was: <- %s', self.name, line) - self.aborted.set() + self.disconnect() return # Only call our hooks if there's data to process. Handlers that support # hooks will return a dict of parsed arguments, which can be passed on