Author: asterix Date: 2007-06-01 21:49:21 +0200 (Fri, 01 Jun 2007) New Revision: 8190
Modified: trunk/src/common/connection.py Log: prevent a traceback. fixes #3202
Modified: trunk/src/common/connection.py =================================================================== --- trunk/src/common/connection.py 2007-06-01 18:19:19 UTC (rev 8189) +++ trunk/src/common/connection.py 2007-06-01 19:49:21 UTC (rev 8190) @@ -632,6 +632,8 @@ 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,