diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-07 18:14:05 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-07 18:14:05 +0100 |
commit | 1af1f7d958fcec70817962563ce1608d985c9a44 (patch) | |
tree | 5bd5542b10c29a8aeb69fec6bcb6c91d40eeb6a4 /src/relay/network.py | |
parent | 3d3b7109cfe85292cc790f8380cb2f2b3aa0821e (diff) |
fix various exceptions from missing Qweechat code
Diffstat (limited to 'src/relay/network.py')
-rw-r--r-- | src/relay/network.py | 2 |
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): |