missed one

This commit is contained in:
ed 2021-11-06 18:33:32 +01:00
parent f050647b43
commit 807f272895

View file

@ -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)