mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 06:52:07 +08:00
replay: fix hang if started with a special segment and there is no INIT_DATA in events (#27107)
* add events if allow or block is specified * add init_data
This commit is contained in:
@@ -25,6 +25,13 @@ Replay::Replay(QString route, QStringList allow, QStringList block, SubMaster *s
|
||||
s.push_back(it.name);
|
||||
}
|
||||
}
|
||||
|
||||
if (!allow_list.empty()) {
|
||||
// the following events are needed for replay to work properly.
|
||||
allow_list.insert(cereal::Event::Which::INIT_DATA);
|
||||
allow_list.insert(cereal::Event::Which::CAR_PARAMS);
|
||||
}
|
||||
|
||||
qDebug() << "services " << s;
|
||||
qDebug() << "loading route " << route;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user