Now About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/relay/network.py
diff options
context:
space:
mode:
authorLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-10-07 18:14:05 +0100
committerLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-10-07 18:14:05 +0100
commit1af1f7d958fcec70817962563ce1608d985c9a44 (patch)
tree5bd5542b10c29a8aeb69fec6bcb6c91d40eeb6a4 /src/relay/network.py
parent3d3b7109cfe85292cc790f8380cb2f2b3aa0821e (diff)
fix various exceptions from missing Qweechat code
Diffstat (limited to 'src/relay/network.py')
-rw-r--r--src/relay/network.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/relay/network.py b/src/relay/network.py
index b502ddd..b27edaa 100644
--- a/src/relay/network.py
+++ b/src/relay/network.py
@@ -247,6 +247,8 @@ class Network(GObject.GObject):
def is_connected(self):
"""Return True if the socket is connected, False otherwise."""
+ if self._socket is None:
+ return False
return self._socket.is_connected()
def is_ssl(self):