Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
197
Issues
197
List
Boards
Labels
Service Desk
Milestones
Merge Requests
20
Merge Requests
20
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim
Commits
0bfc1edd
Commit
0bfc1edd
authored
May 21, 2020
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Client: Unregister handlers on cleanup()
Fixes #10083
parent
50253f80
Pipeline
#5664
failed with stages
in 2 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
gajim/common/client.py
gajim/common/client.py
+9
-0
No files found.
gajim/common/client.py
View file @
0bfc1edd
...
...
@@ -283,6 +283,7 @@ def _after_disconnect(self):
if
self
.
_destroy_client
:
self
.
_client
.
destroy
()
self
.
_client
=
None
self
.
_destroy_client
=
False
self
.
_create_client
()
...
...
@@ -519,6 +520,7 @@ def _abort_reconnect(self):
if
self
.
_destroy_client
:
self
.
_client
.
destroy
()
self
.
_client
=
None
self
.
_destroy_client
=
False
self
.
_create_client
()
...
...
@@ -529,6 +531,13 @@ def _disable_reconnect_timer(self):
def
cleanup
(
self
):
self
.
_destroyed
=
True
if
self
.
_client
is
not
None
:
# cleanup() is called befor nbmxpp.Client has disconnected,
# when we disable the account. So we need to unregister
# handlers here.
# TODO: cleanup() should not be called befor disconnect is finished
for
handler
in
modules
.
get_handlers
(
self
):
self
.
_client
.
unregister_handler
(
handler
)
modules
.
unregister_modules
(
self
)
def
quit
(
self
,
kill_core
):
...
...
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