From e7f88e6dd649e118acb5c1a9e449926f69a421e7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 15 Apr 2008 09:02:36 +0000 Subject: [PATCH] prevent traceback when ping reply arrives after we close the control. fixes #3859 --- src/gajim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index f5e38bb9e..27718dddf 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -2178,7 +2178,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(_('Error.'), 'status') + if ctrl: + ctrl.print_conversation(_('Error.'), 'status') def handle_event_search_form(self, account, data): # ('SEARCH_FORM', account, (jid, dataform, is_dataform))