diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-10-13 08:20:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 08:20:32 -0400 |
commit | 629a951b49ae58af43323e6829cf49d7452ebf39 (patch) | |
tree | 37148e3db9348de955356be8e1154bd076eeab18 /synapse/handlers/deactivate_account.py | |
parent | Fix message duplication if something goes wrong after persisting the event (#... (diff) | |
download | synapse-629a951b49ae58af43323e6829cf49d7452ebf39.tar.xz |
Move additional tasks to the background worker, part 4 (#8513)
Diffstat (limited to 'synapse/handlers/deactivate_account.py')
-rw-r--r-- | synapse/handlers/deactivate_account.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/deactivate_account.py b/synapse/handlers/deactivate_account.py index 58c9f12686..4efe6c530a 100644 --- a/synapse/handlers/deactivate_account.py +++ b/synapse/handlers/deactivate_account.py @@ -45,7 +45,7 @@ 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). - if hs.config.worker_app is None: + if hs.config.run_background_tasks: hs.get_reactor().callWhenRunning(self._start_user_parting) self._account_validity_enabled = hs.config.account_validity.enabled |