mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
classes: really quash duplicate disconnect calls as much as possible
This commit is contained in:
parent
d6952f0361
commit
7586989763
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user