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:
authorYann Leboulanger <asterix@lagaule.org>2007-06-01 23:49:21 +0400
committerYann Leboulanger <asterix@lagaule.org>2007-06-01 23:49:21 +0400
commitc2825a83f710bc3089f6c55fe37ba6ff116035df (patch)
treef7f72e66977e1445319ec76b2fe185a9527ee883 /src/common
parent578654b4c844e6ef608bc57bedcd3ede5cfc2cfe (diff)
prevent a traceback. fixes #3202
Diffstat (limited to 'src/common')
-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,