summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/registration.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index 86fd2600fd..8a63fe4691 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -39,7 +39,7 @@ class RegistrationStore(SQLBaseStore):
         """
         next_id = yield self._access_tokens_id_gen.get_next()
 
-        self._simple_insert(
+        yield self._simple_insert(
             "access_tokens",
             {
                 "id": next_id,