cleanup no matter what
@@ -180,6 +180,7 @@ class Osr2mp4:
mix_video_audio(self.settings)
def cleanup(self):
+ try:
if self.drawers is not None:
for x in range(len(self.drawers)):
self.drawers[x].terminate()
@@ -189,6 +190,8 @@ class Osr2mp4:
conn2.close()
if self.audio is not None:
self.audio.terminate()
+ except Exception as e:
+ logging.error(repr(e))
cleanup(self.settings)
def getprogress(self):
