Explorar el Código

handle process exit exceptions

Blake Blackshear hace 4 años
padre
commit
840f046572
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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: