mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 17:06: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:
parent
0ac2376e07
commit
07342529e0
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user