Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/connection.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/connection.py b/src/common/connection.py
index 3445d3821..00a17a54e 100644
--- a/src/common/connection.py
+++ b/src/common/connection.py
@@ -632,6 +632,8 @@ class Connection(ConnectionHandlers):
self.connection.send(iq)
def send_invisible_presence(self, msg, signed, initial = False):
+ if not self.connection:
+ return
# try to set the privacy rule
iq = self.build_privacy_rule('invisible', 'deny')
self.connection.SendAndCallForResponse(iq, self._continue_invisible,