cabana: fix core dump when failed to connect to panda (#28529)

old-commit-hash: 7128daebba
beeps
Dean Lee 2 years ago committed by GitHub
parent 24af8edc7f
commit 3cd5609257
  1. 7
      tools/cabana/cabana.cc

@ -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")) {

Loading…
Cancel
Save