forget_ip: fix cursor locking

This commit is contained in:
ed 2026-03-08 10:08:56 +00:00
parent 753ff548f2
commit 37123e33d2

View file

@ -661,6 +661,7 @@ class Up2k(object):
for _ in range(2): for _ in range(2):
q = "select ip, at from up where ip > '' order by +at limit 1" q = "select ip, at from up where ip > '' order by +at limit 1"
with self.mutex:
hits = cur.execute(q).fetchall() hits = cur.execute(q).fetchall()
if not hits: if not hits:
break break