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

Stop early when handling connection-failed in handle_event

Fixes: #10436
parent a9b2922b
Pipeline #7331 passed with stages
in 7 minutes and 6 seconds
......@@ -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'):
app.interface.roster.window.present()
return
w = None
ctrl = None
resource = app.get_resource_from_jid(fjid)
jid = app.get_jid_without_resource(fjid)
if type_ == 'connection-lost':
app.interface.roster.window.present()
return
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