diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-07-13 13:31:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-13 13:31:46 -0400 |
commit | 457096e6dfd2b5837f289366dd99e6d2f276d924 (patch) | |
tree | 6265b2ddaa83e6f409cd7ff2d9afd5d06f76caef /synapse/handlers/deactivate_account.py | |
parent | Fix handling of "off" in encryption_enabled_by_default_for_room_type (#7822) (diff) | |
download | synapse-457096e6dfd2b5837f289366dd99e6d2f276d924.tar.xz |
Support handling registration requests across multiple client readers. (#7830)
Diffstat (limited to 'synapse/handlers/deactivate_account.py')
-rw-r--r-- | synapse/handlers/deactivate_account.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/deactivate_account.py b/synapse/handlers/deactivate_account.py index 2afb390a92..3e3e6bd475 100644 --- a/synapse/handlers/deactivate_account.py +++ b/synapse/handlers/deactivate_account.py @@ -40,7 +40,8 @@ class DeactivateAccountHandler(BaseHandler): # Start the user parter loop so it can resume parting users from rooms where # it left off (if it has work left to do). - hs.get_reactor().callWhenRunning(self._start_user_parting) + if hs.config.worker_app is None: + hs.get_reactor().callWhenRunning(self._start_user_parting) self._account_validity_enabled = hs.config.account_validity.enabled |