mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 23:12:04 +08:00
cabana: fix core dump when failed to connect to panda (#28529)
This commit is contained in:
@@ -42,7 +42,12 @@ int main(int argc, char *argv[]) {
|
||||
if (cmd_parser.isSet("panda-serial")) {
|
||||
config.serial = cmd_parser.value("panda-serial");
|
||||
}
|
||||
stream = new PandaStream(&app, config);
|
||||
try {
|
||||
stream = new PandaStream(&app, config);
|
||||
} catch (std::exception &e) {
|
||||
qWarning() << e.what();
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
uint32_t replay_flags = REPLAY_FLAG_NONE;
|
||||
if (cmd_parser.isSet("ecam")) {
|
||||
|
||||
Reference in New Issue
Block a user