mirror of
https://github.com/9001/copyparty.git
synced 2025-10-06 03:50:30 +02:00
up2k: limit runahead in client
This commit is contained in:
parent
3b1839c2ce
commit
69b83dfdc4
2 changed files with 10 additions and 8 deletions
|
@ -293,7 +293,8 @@ class Up2k(object):
|
|||
job = job or reg[wark]
|
||||
if job["prel"] == cj["prel"] and job["name"] == cj["name"]:
|
||||
# ensure the files haven't been deleted manually
|
||||
for fn in job["name"], job["tnam"]:
|
||||
names = [job[x] for x in ["name", "tnam"] if x in job]
|
||||
for fn in names:
|
||||
path = os.path.join(job["ptop"], job["prel"], fn)
|
||||
if not os.path.exists(path):
|
||||
job = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue