Support handling registration requests across multiple client readers. (#7830)

This commit is contained in:
Patrick Cloke 2020-07-13 13:31:46 -04:00 committed by GitHub
parent 504c8f3483
commit 457096e6df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 136 additions and 1 deletions

View file

@ -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