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:
parent
d50de12834
commit
b02aadf378
@ -2077,7 +2077,7 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils):
|
|||||||
|
|
||||||
def _send(self, data):
|
def _send(self, data):
|
||||||
"""Sends raw text to the uplink server."""
|
"""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)
|
log.debug("(%s) Not sending message %r since the connection is dead", self.name, data)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user