prevent traceback when ping reply arrives after we close the control. fixes #3859

This commit is contained in:
Yann Leboulanger 2008-04-15 09:02:36 +00:00
parent 2c4e901b8f
commit e7f88e6dd6
1 changed files with 2 additions and 1 deletions

View File

@ -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))