mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
missed one
This commit is contained in:
parent
f050647b43
commit
807f272895
|
@ -2002,7 +2002,10 @@ class Up2k(object):
|
|||
|
||||
def _snap_reg(self, ptop, reg):
|
||||
now = time.time()
|
||||
histpath = self.asrv.vfs.histtab[ptop]
|
||||
histpath = self.asrv.vfs.histtab.get(ptop)
|
||||
if not histpath:
|
||||
return
|
||||
|
||||
rm = [x for x in reg.values() if now - x["poke"] > self.snap_discard_interval]
|
||||
if rm:
|
||||
m = "dropping {} abandoned uploads in {}".format(len(rm), ptop)
|
||||
|
|
Loading…
Reference in a new issue