txlyre %!s(int64=2) %!d(string=hai) anos
pai
achega
4e08916a92
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      byafn.py

+ 1 - 1
byafn.py

@@ -208,7 +208,7 @@ async def cooldown(peer, out=True):
   if out:
     diff = time.time() - peer.last_message_out_ts
     if diff < RATELIMIT:
-      await asyncio.sleep(RATELIMIT - diff)
+      await asyncio.sleep(min(RATELIMIT - diff + 0.1, RATELIMIT + 0.01))
 
     peer.last_message_out_ts = time.time()
   else: