From edb5910c1db2232b31a616b979cda8306c1b06f6 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Tue, 15 Apr 2008 12:36:10 +0000 Subject: [PATCH] prevent traceback when ping reply arrives after we close the control; without error too. Fixes #3859. --- src/gajim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index 8683dc183..460be6aac 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -2172,7 +2172,8 @@ class Interface: ctrl = self.msg_win_mgr.get_control(contact.get_full_jid(), account) if ctrl == None: ctrl = self.msg_win_mgr.get_control(contact.jid, account) - ctrl.print_conversation(_('Pong! (%s s.)') % seconds, 'status') + if ctrl: + ctrl.print_conversation(_('Pong! (%s s.)') % seconds, 'status') def handle_event_ping_error(self, account, contact): ctrl = self.msg_win_mgr.get_control(contact.get_full_jid(), account)