From 6d3d2b239d63307c1326b9358a2ae06edd1d6620 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 6 Jul 2017 21:45:51 -0700 Subject: [PATCH] IRCS2SProtocol: ignore attempts to ping the uplink before the link is ready --- protocols/ircs2s_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/ircs2s_common.py b/protocols/ircs2s_common.py index a5987a9..773e9e9 100644 --- a/protocols/ircs2s_common.py +++ b/protocols/ircs2s_common.py @@ -403,7 +403,7 @@ class IRCS2SProtocol(IRCCommonProtocol): """Sends a PING to the uplink. This is mostly used by PyLink internals to check whether the remote link is up.""" - if self.sid: + if self.sid and self.connected.is_set(): self._send_with_prefix(self.sid, 'PING %s' % self._expandPUID(self.sid)) def quit(self, numeric, reason):