changeset 427b5a6593f9 in /home/hg/repos/gajim details:http://hg.gajim.org/gajim?cmd=changeset;node=427b5a6593f9 description: prevent traceback when we receive a presence but we are no more connected. Fixes #5028 diffstat:
src/common/connection_handlers.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diffs (13 lines): diff -r 8ae0a55caafe -r 427b5a6593f9 src/common/connection_handlers.py --- a/src/common/connection_handlers.py Tue May 19 15:27:33 2009 +0200 +++ b/src/common/connection_handlers.py Wed May 20 10:33:19 2009 +0200 @@ -2072,6 +2072,9 @@ if ptype and not ptype in rfc_types: ptype = None log.debug('PresenceCB: %s' % ptype) + if not self.connection or self.connected < 2: + log.debug('account is no more connected') + return try: who = helpers.get_full_jid_from_iq(prs) except Exception: _______________________________________________ Commits mailing list Commits@gajim.org http://lists.gajim.org/cgi-bin/listinfo/commits