handle process exit exceptions

This commit is contained in:
Blake Blackshear 2020-12-24 14:23:59 -06:00
parent 89e3c2e4b1
commit 840f046572

View File

@ -45,9 +45,9 @@ class RecordingMaintainer(threading.Thread):
files_in_use = []
for process in psutil.process_iter():
if process.name() != 'ffmpeg':
continue
try:
if process.name() != 'ffmpeg':
continue
flist = process.open_files()
if flist:
for nt in flist: