mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-16 14:16:16 -08:00
fix(downloads): preserve retained partial ownership
This commit is contained in:
1 parent
645a37afa1
commit
9f2e827e55
6 files changed
+298
-90
No files matched your search
@@ -109,9 +109,13 @@ variants, contextual buttons, and theme-aware styling.
|
||||
actually settles, so later callers get independent bounded waits without
|
||||
duplicating stalled native work. Only `ENOENT` and `ENOTDIR` are authoritative
|
||||
absence; permission, I/O, and other probe errors remain unknown, so
|
||||
`DOWNLOADS_START` leaves the completed row and file path untouched. The
|
||||
coordinator counts both stable duplicate reasons as skipped. There is no
|
||||
batch IPC,
|
||||
`DOWNLOADS_START` leaves the completed row and file path untouched. Before a
|
||||
completed-missing, failed, or canceled row clears its path, the same start IPC
|
||||
asynchronously removes any retained `.part`. This cleanup also has a
|
||||
one-second per-caller deadline, coalesces same-path work, and allows at most
|
||||
four underlying unlinks; timeout, permission, and I/O failures keep the row's
|
||||
ownership intact, while `ENOENT` and `ENOTDIR` safely proceed. The coordinator
|
||||
counts both stable duplicate reasons as skipped. There is no batch IPC,
|
||||
parallel transfer, or queue reordering: destination authorization, persisted
|
||||
header handling, and the backend's one-active-transfer FIFO semantics remain
|
||||
unchanged.
|
||||
|
||||
Reference in new issue
Block a user