소스 검색

handle process exit exceptions

Blake Blackshear 4 년 전
부모
커밋
840f046572
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      frigate/record.py

+ 2 - 2
frigate/record.py

@@ -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: