Locationd: only process valid log messages (#1761)

old-commit-hash: bfeefb6fd3498a14b27d6c83f5b254ab7113d3dd
This commit is contained in:
Willem Melching
2020-06-22 14:41:15 -07:00
committed by GitHub
parent b772d12f87
commit 08fa4c4691
+1 -1
View File
@@ -304,7 +304,7 @@ def locationd_thread(sm, pm, disabled_logs=None):
sm.update()
for sock, updated in sm.updated.items():
if updated:
if updated and sm.valid[sock]:
t = sm.logMonoTime[sock] * 1e-9
if sock == "sensorEvents":
localizer.handle_sensors(t, sm[sock])