From 98dc8bdfd1777f944f0774263174de09a0559a43 Mon Sep 17 00:00:00 2001 From: HummyPkg Date: Mon, 13 Mar 2017 18:17:13 +0000 Subject: [PATCH] Do not continually try to decrypt zero byte recordings --- webif/lib/auto/plugin/decrypt/queue.hook | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webif/lib/auto/plugin/decrypt/queue.hook b/webif/lib/auto/plugin/decrypt/queue.hook index ee61cbfc..99dac0aa 100644 --- a/webif/lib/auto/plugin/decrypt/queue.hook +++ b/webif/lib/auto/plugin/decrypt/queue.hook @@ -11,6 +11,10 @@ proc ::decrypt::dequeue {q ts} { return {"OK" "Already decrypted"} } + if {![$ts size]} { + return {"FAILED" "Zero-byte recording, cannot process"} + } + if {![system dlnastatus]} { if {[system instandby]} { # Prevent polling every minute