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
dce40846
Commit
dce40846
authored
May 16, 2020
by
Philipp Hörist
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Client: Unregister modules when account is disabled
parent
fe82e887
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
gajim/common/client.py
gajim/common/client.py
+4
-8
No files found.
gajim/common/client.py
View file @
dce40846
...
...
@@ -79,7 +79,6 @@ def __init__(self, account):
self
.
available_transports
=
{}
# Register all modules
modules
.
register_modules
(
self
)
self
.
_create_client
()
...
...
@@ -162,7 +161,9 @@ def _create_client(self):
self
.
_client
.
subscribe
(
'stanza-sent'
,
self
.
_on_stanza_sent
)
self
.
_client
.
subscribe
(
'stanza-received'
,
self
.
_on_stanza_received
)
self
.
_register_new_handlers
()
for
handler
in
modules
.
get_handlers
(
self
):
self
.
_client
.
register_handler
(
handler
)
self
.
handlers_registered
=
True
def
process_ssl_errors
(
self
):
if
not
self
.
_ssl_errors
:
...
...
@@ -372,11 +373,6 @@ def change_status(self, show, msg, auto=False):
app
.
nec
.
push_incoming_event
(
OurShowEvent
(
None
,
conn
=
self
,
show
=
show
))
def
_register_new_handlers
(
self
):
for
handler
in
modules
.
get_handlers
(
self
):
self
.
_client
.
register_handler
(
handler
)
self
.
handlers_registered
=
True
def
get_module
(
self
,
name
):
return
modules
.
get
(
self
.
_account
,
name
)
...
...
@@ -522,7 +518,7 @@ def _disable_reconnect_timer(self):
self
.
_reconnect_timer_source
=
None
def
cleanup
(
self
):
pass
modules
.
unregister_modules
(
self
)
def
quit
(
self
,
kill_core
):
if
kill_core
and
self
.
_state
in
(
ClientState
.
CONNECTING
,
...
...
Philipp Hörist
@lovetox
mentioned in issue
#10083 (closed)
·
May 16, 2020
mentioned in issue
#10083 (closed)
mentioned in issue #10083
Toggle commit list
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