Commit d9c92338 authored by Jan Kiene's avatar Jan Kiene
Browse files

do only delete tmp wav file when it was actually used

parent f2b55de2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -638,7 +638,7 @@ class IvasModeRunner(IvasModeCollector.IvasModeCollector):
                        self.lock.acquire()
                        os.remove(pcm_name_lock)
                        # os.remove(pcm_name_res_tmp)
                        if do_limit_duration:
                        if do_limit_duration and cut_len_samples < in_len:
                            os.remove(pcm_name_cpy_tmp)
                        self.logger.info(
                            "PCM file {} successfully created!".format(pcm_name)