Commit ef9c79bb authored by fred's avatar fred
Browse files

stamina: don't factor in some tolerance for earlier stop for streams

parent d0844055
......@@ -451,6 +451,9 @@ class Command(BaseCommand):
# factor in some tolerance for diffusions a bit shorter than known, so
# they are not replayed from the start if they finished too early.
tolerance = datetime.timedelta(seconds=60)
if diffusion and hasattr(diffusion, 'is_stream') and diffusion.is_stream():
# unless it's a stream
tolerance = datetime.timedelta(seconds=0)
# note it shouldn't be possible to have both diffusion and occurences
# running at the moment.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment