mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
handle process exit exceptions
This commit is contained in:
parent
89e3c2e4b1
commit
840f046572
@ -45,9 +45,9 @@ class RecordingMaintainer(threading.Thread):
|
|||||||
|
|
||||||
files_in_use = []
|
files_in_use = []
|
||||||
for process in psutil.process_iter():
|
for process in psutil.process_iter():
|
||||||
|
try:
|
||||||
if process.name() != 'ffmpeg':
|
if process.name() != 'ffmpeg':
|
||||||
continue
|
continue
|
||||||
try:
|
|
||||||
flist = process.open_files()
|
flist = process.open_files()
|
||||||
if flist:
|
if flist:
|
||||||
for nt in flist:
|
for nt in flist:
|
||||||
|
Loading…
Reference in New Issue
Block a user