Browse Source

Err, you cannot sleep for negative seconds...

Will Hunt 3 years ago
parent
commit
ebe76e884b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mautrix_signal/__main__.py

+ 1 - 1
mautrix_signal/__main__.py

@@ -95,7 +95,7 @@ class SignalBridge(Bridge):
             log.info("Executing periodic syncs")
             for user in User.by_username.values():
                 # Add some randomness to the sync to avoid a thundering herd
-                await asyncio.sleep(uniform(-SYNC_JITTER, SYNC_JITTER))
+                await asyncio.sleep(uniform(0, SYNC_JITTER))
                 try:
                     await user.sync()
                 except asyncio.CancelledError: