summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-01-28 20:03:36 +0000
committerErik Johnston <erik@matrix.org>2021-01-28 20:03:36 +0000
commit2f0c33a5402fad6af6c5654423f3a7bdc8908d24 (patch)
tree673bd8940d1e1e1c56f08502376274b137135504 /synapse
parentFixup (diff)
downloadsynapse-erikj/smoother.tar.xz
Diffstat (limited to 'synapse')
-rw-r--r--synapse/util/async_helpers.py2
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