close when is done
This commit is contained in:
parent
499f7b44dd
commit
3effb577ce
@ -1111,6 +1111,10 @@ def main():
|
|||||||
logger.warning('program terminated')
|
logger.warning('program terminated')
|
||||||
terminate_processes(decoder, encoder, watcher)
|
terminate_processes(decoder, encoder, watcher)
|
||||||
|
|
||||||
|
# close encoder when nothing is to do anymore
|
||||||
|
if encoder.poll() is None:
|
||||||
|
encoder.terminate()
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
encoder.wait()
|
encoder.wait()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user