identity check is correct way to check for None

This commit is contained in:
Patrick 2021-06-25 10:37:21 -06:00 committed by Blake Blackshear
parent 3fb24b4bf5
commit 7ad8b8298d

View File

@ -233,7 +233,7 @@ class CameraWatchdog(threading.Thread):
for p in self.ffmpeg_other_processes:
poll = p["process"].poll()
if poll == None:
if poll is None:
continue
p["logpipe"].dump()
p["process"] = start_or_restart_ffmpeg(