0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-16 23:03:53 +01:00

Always advance stream tokens

This commit is contained in:
Erik Johnston 2017-04-03 15:22:56 +01:00
parent 1df7c28661
commit 0a6a966e2b

View file

@ -121,7 +121,10 @@ class ReplicationStreamer(object):
is currently being executed, so that nothing gets missed
"""
if not self.connections:
# Don't bother if nothing is listening
# Don't bother if nothing is listening. We still need to advance
# the stream tokens otherwise they'll fall beihind forever
for stream in self.streams:
stream.advance_current_token()
return
# If we're in the process of checking for new updates, mark that fact