1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-12 21:22:17 +00:00

Ensure transcoding failures are never cached

By re-raising any exceptions that `transcode` encounters while running
the transcode, it ensures that `set_generated` will also see the
exception, preventing it from caching an incomplete transcode.
This commit is contained in:
Carey Metcalfe 2019-02-03 23:12:11 -05:00
parent 0ac2376e07
commit 07342529e0

View File

@ -123,7 +123,8 @@ def stream_media():
if dec_proc != None:
dec_proc.kill()
proc.kill()
raise
finally:
if dec_proc != None:
dec_proc.wait()
proc.wait()