mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 03:25:53 +03:00
Also do check inside linearizer
This commit is contained in:
parent
44cd6e1358
commit
3e0c0660b3
1 changed files with 4 additions and 3 deletions
|
@ -350,6 +350,7 @@ class RegistrationHandler(BaseHandler):
|
|||
def _generate_user_id(self, reseed=False):
|
||||
if reseed or self._next_generated_user_id is None:
|
||||
with (yield self._generate_user_id_linearizer.queue(())):
|
||||
if reseed or self._next_generated_user_id is None:
|
||||
self._next_generated_user_id = (
|
||||
yield self.store.find_next_generated_user_id_localpart()
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue