If DLNA download fails completely, defer rather than error
This commit is contained in:
parent
87440918e0
commit
7e0de7889e
@ -99,6 +99,12 @@ proc ::decrypt::dequeue {q ts} {
|
|||||||
# Release the helper lock once finished.
|
# Release the helper lock once finished.
|
||||||
if {$helper} { system dlnahelper -release }
|
if {$helper} { system dlnahelper -release }
|
||||||
|
|
||||||
|
if {![file exists "$tmp/$bfile"]} {
|
||||||
|
log " $file - Download failed." 0
|
||||||
|
system endop decrypt
|
||||||
|
return {"DEFER" "File download failed"}
|
||||||
|
}
|
||||||
|
|
||||||
if {[file size $file] != [file size "$tmp/$bfile"]} {
|
if {[file size $file] != [file size "$tmp/$bfile"]} {
|
||||||
log " $file - File size mismatch." 0
|
log " $file - File size mismatch." 0
|
||||||
file tdelete "$tmp/$bfile"
|
file tdelete "$tmp/$bfile"
|
||||||
|
Loading…
Reference in New Issue
Block a user