Now About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/relay/network.py
diff options
context:
space:
mode:
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):