diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2007-06-01 23:49:21 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2007-06-01 23:49:21 +0400 |
commit | c2825a83f710bc3089f6c55fe37ba6ff116035df (patch) | |
tree | f7f72e66977e1445319ec76b2fe185a9527ee883 /src/common | |
parent | 578654b4c844e6ef608bc57bedcd3ede5cfc2cfe (diff) |
prevent a traceback. fixes #3202
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/connection.py | 2 |
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, |