Skip to content

Commit

Permalink
properly return from main
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Apr 16, 2024
1 parent c913b0c commit da4e431
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions samples/ecaludp_perftool/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ int main(int argc, char* argv[])
receiver = std::make_shared<ReceiverAsync>(receiver_parameters);
break;
case Implementation::RECEIVENPCAP:
std::cerr << "Error: Implementation not yet implemented" << std::endl; return;
std::cerr << "Error: Implementation not yet implemented" << std::endl; return 1;
break;
case Implementation::RECEIVENPCAPASYNC:
std::cerr << "Error: Implementation not yet implemented" << std::endl; return;
std::cerr << "Error: Implementation not yet implemented" << std::endl; return 1;
break;
default:
break;
Expand All @@ -295,4 +295,6 @@ int main(int argc, char* argv[])

while(true)
std::this_thread::sleep_for(std::chrono::seconds(1));

return 0
}

0 comments on commit da4e431

Please sign in to comment.