mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-03 01:02:41 -04:00
Add back the guard against the user directory stream position not existing. (#9428)
As the comment says, this guard was there for when the initial user directory update has yet to happen.
This commit is contained in:
parent
626afd7e89
commit
43f1c82457
3 changed files with 12 additions and 1 deletions
|
@ -143,6 +143,10 @@ class UserDirectoryHandler(StateDeltasHandler):
|
|||
if self.pos is None:
|
||||
self.pos = await self.store.get_user_directory_stream_pos()
|
||||
|
||||
# If still None then the initial background update hasn't happened yet.
|
||||
if self.pos is None:
|
||||
return None
|
||||
|
||||
# Loop round handling deltas until we're up to date
|
||||
while True:
|
||||
with Measure(self.clock, "user_dir_delta"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue