summary refs log tree commit diff
path: root/synapse/handlers/register.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-06-05 14:42:55 -0400
committerGitHub <noreply@github.com>2020-06-05 14:42:55 -0400
commit737b4a936e35daaa839e7296d888041941546b47 (patch)
tree54bf774f1dca24f5826032403a194972c24d756f /synapse/handlers/register.py
parentAdd an option to disable autojoin for guest accounts (#6637) (diff)
downloadsynapse-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.py6
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: