Fix ffmpeg processes not terminating.

This commit is contained in:
Leonid Nikitin 2024-01-20 02:24:14 +06:00
parent 77b847dde6
commit 4fa977347c
Signed by: kor-elf
GPG Key ID: 7DE8F80C5CEC2C0D

View File

@ -78,12 +78,12 @@ func (s Service) RunConvert(setting ConvertSetting, progress ProgressContract) e
return err
}
err = progress.Run(stdOut, stdErr)
if err != nil {
return err
}
errProgress := progress.Run(stdOut, stdErr)
err = cmd.Wait()
if errProgress != nil {
return errProgress
}
if err != nil {
return err
}