mirror of
https://github.com/9001/copyparty.git
synced 2026-04-12 23:32:32 -06:00
forget_ip: fix cursor locking
This commit is contained in:
parent
753ff548f2
commit
37123e33d2
|
|
@ -661,6 +661,7 @@ class Up2k(object):
|
|||
|
||||
for _ in range(2):
|
||||
q = "select ip, at from up where ip > '' order by +at limit 1"
|
||||
with self.mutex:
|
||||
hits = cur.execute(q).fetchall()
|
||||
if not hits:
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in a new issue