mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 03:33:10 +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):
|
||||
"""Handle disconnects from the remote server."""
|
||||
if self._aborted.is_set():
|
||||
return
|
||||
|
||||
self._pre_disconnect()
|
||||
|
||||
if self._socket is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user