summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to '')
-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