prevent traceback when ping reply arrives after we close the control; without

error too. Fixes #3859.
This commit is contained in:
Jean-Marie Traissard 2008-04-15 12:36:10 +00:00
parent 5348c3a37f
commit edb5910c1d
1 changed files with 2 additions and 1 deletions

View File

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