diff options
author | Erik Johnston <erik@matrix.org> | 2021-01-28 20:03:36 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-01-28 20:03:36 +0000 |
commit | 2f0c33a5402fad6af6c5654423f3a7bdc8908d24 (patch) | |
tree | 673bd8940d1e1e1c56f08502376274b137135504 | |
parent | Fixup (diff) | |
download | synapse-github/erikj/smoother.tar.xz |
-rw-r--r-- | synapse/util/async_helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/async_helpers.py b/synapse/util/async_helpers.py index b5843c6443..6153a8b153 100644 --- a/synapse/util/async_helpers.py +++ b/synapse/util/async_helpers.py @@ -631,7 +631,7 @@ class Smoother: if self._queue: self._next_call = self._reactor.callLater( - (self._queue[0].scheduled_for_ms - now) / 1000.0, self._fire_next, + max(self._queue[0].scheduled_for_ms - now, 0) / 1000.0, self._fire_next, ) return |