Locationd: only process valid log messages (#1761)

This commit is contained in:
Willem Melching
2020-06-22 14:41:15 -07:00
committed by GitHub
parent 88f9266378
commit bfeefb6fd3
+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])