From b02aadf3785a9f0b5249772a9a79e705b8183a8f Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 29 Sep 2020 18:49:43 +0000 Subject: [PATCH] _send: break if the socket is None --- classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes.py b/classes.py index a24b38a..866d8c4 100644 --- a/classes.py +++ b/classes.py @@ -2077,7 +2077,7 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils): def _send(self, data): """Sends raw text to the uplink server.""" - if self._aborted.is_set(): + if self._aborted.is_set() or self._socket is None: log.debug("(%s) Not sending message %r since the connection is dead", self.name, data) return