3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

_send: break if the socket is None

This commit is contained in:
James Lu 2020-09-29 18:49:43 +00:00
parent d50de12834
commit b02aadf378

View File

@ -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