3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

classes: really quash duplicate disconnect calls as much as possible

This commit is contained in:
James Lu 2018-03-31 11:53:01 -07:00
parent d6952f0361
commit 7586989763

View File

@ -1609,6 +1609,9 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils):
def disconnect(self): def disconnect(self):
"""Handle disconnects from the remote server.""" """Handle disconnects from the remote server."""
if self._aborted.is_set():
return
self._pre_disconnect() self._pre_disconnect()
if self._socket is not None: if self._socket is not None: