Closed llamasoft closed 6 years ago
Awesome! Thank you for figuring this out!
What do you think about indenting the following condition under your new if hasattr(self, 'proc'):
check, which would make it simpler and a little easier to read?
I'm totally fine with that. Does the revised version look a bit better? 👍
Perfect! Thank you!! :sparkles: :rocket:
This fixes issue #51 regarding
self.proc.kill()
when running on Windows Subsystem for Linux. On WSL, ffmpeg is terminating normally, butreturncode
isn't being updated. Callingpoll()
on the subprocess returns immediately and forces an update ofreturncode
. This allows the code to skip thekill()
call if the process is already done.