mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 15:02:06 +08:00
replay: handle missing socket while replaying route log with --allow flag (#24933)
* fix: fix the problem with replay routes locally * fix: Exception with --allow flag in replay.cc Co-authored-by: Anton Rudomaneko <anton.rudomanenko@nami.ru>
This commit is contained in:
committed by
GitHub
parent
278f7b9e8a
commit
67b601e0ef
@@ -360,7 +360,8 @@ void Replay::stream() {
|
||||
setCurrentSegment(toSeconds(cur_mono_time_) / 60);
|
||||
|
||||
// migration for pandaState -> pandaStates to keep UI working for old segments
|
||||
if (cur_which == cereal::Event::Which::PANDA_STATE_D_E_P_R_E_C_A_T_E_D) {
|
||||
if (cur_which == cereal::Event::Which::PANDA_STATE_D_E_P_R_E_C_A_T_E_D &&
|
||||
sockets_[cereal::Event::Which::PANDA_STATES] != nullptr) {
|
||||
MessageBuilder msg;
|
||||
auto ps = msg.initEvent().initPandaStates(1);
|
||||
ps[0].setIgnitionLine(true);
|
||||
|
||||
Reference in New Issue
Block a user