mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
IRCNetwork: use disconnect() to kill networks if parsing a command errors
This is more standard, as aborted is solely an internal value.
This commit is contained in:
parent
f4da1fc94c
commit
8d15d05711
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user