no racing

This commit is contained in:
ed 2026-01-21 03:19:41 +00:00
parent b4df8fa23c
commit ba67b27946

View file

@ -997,8 +997,8 @@ class HttpCli(object):
rt = bans[ip] - time.time() rt = bans[ip] - time.time()
if rt < 0: if rt < 0:
self.log("client unbanned", 3)
del bans[ip] del bans[ip]
self.log("client unbanned", 3)
return False return False
self.log("banned for {:.0f} sec".format(rt), 6) self.log("banned for {:.0f} sec".format(rt), 6)