summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-07-13 13:31:46 -0400
committerGitHub <noreply@github.com>2020-07-13 13:31:46 -0400
commit457096e6dfd2b5837f289366dd99e6d2f276d924 (patch)
tree6265b2ddaa83e6f409cd7ff2d9afd5d06f76caef /synapse
parentFix handling of "off" in encryption_enabled_by_default_for_room_type (#7822) (diff)
downloadsynapse-457096e6dfd2b5837f289366dd99e6d2f276d924.tar.xz
Support handling registration requests across multiple client readers. (#7830)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/deactivate_account.py3
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