diff --git a/selfdrive/locationd/locationd.py b/selfdrive/locationd/locationd.py index cf621386dc..3a5d515538 100755 --- a/selfdrive/locationd/locationd.py +++ b/selfdrive/locationd/locationd.py @@ -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])