Commit a8111619 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

Stop early when handling connection-failed in handle_event

Fixes: #10436
parent a9b2922b
......@@ -1185,16 +1185,16 @@ def add_event(self, account, jid, event):
self.roster.select_contact(bb_jid, bb_account)
def handle_event(self, account, fjid, type_):
if type_ in ('connection-lost', 'connection-failed'):
w = None
ctrl = None
resource = app.get_resource_from_jid(fjid)
jid = app.get_jid_without_resource(fjid)
if type_ == 'connection-lost':
if type_ in ('printed_gc_msg', 'printed_marked_gc_msg', 'gc_msg'):
w = self.msg_win_mgr.get_window(jid, account)
if jid in self.minimized_controls[account]:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment