Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pg mr
gajim
Commits
a8111619
Commit
a8111619
authored
Feb 14, 2021
by
Daniel Brötzmann
Browse files
Stop early when handling connection-failed in handle_event
Fixes: #10436
parent
a9b2922b
Changes
1
Show whitespace changes
Inline
Side-by-side
gajim/gui_interface.py
View file @
a8111619
...
...
@@ -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
]:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment