diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-06-05 14:42:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 14:42:55 -0400 |
commit | 737b4a936e35daaa839e7296d888041941546b47 (patch) | |
tree | 54bf774f1dca24f5826032403a194972c24d756f /synapse/handlers/register.py | |
parent | Add an option to disable autojoin for guest accounts (#6637) (diff) | |
download | synapse-737b4a936e35daaa839e7296d888041941546b47.tar.xz |
Convert user directory handler and related classes to async/await. (#7640)
Diffstat (limited to 'synapse/handlers/register.py')
-rw-r--r-- | synapse/handlers/register.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index 5c7113a3bb..af812dbda9 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -207,8 +207,10 @@ class RegistrationHandler(BaseHandler): if self.hs.config.user_directory_search_all_users: profile = yield self.store.get_profileinfo(localpart) - yield self.user_directory_handler.handle_local_profile_change( - user_id, profile + yield defer.ensureDeferred( + self.user_directory_handler.handle_local_profile_change( + user_id, profile + ) ) else: |