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

pull/26939/head^2
Dean Lee 2 years ago committed by GitHub
parent e54d05b42f
commit 7128daebba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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