Skip to content

Commit

Permalink
dnfdaemon: Properly leave event loop
Browse files Browse the repository at this point in the history
Exit the event loop and properly join the serving thread.
  • Loading branch information
m-blaha committed Jan 3, 2025
1 parent 8f7af5e commit 7ba21cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dnf5daemon-client/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ int main(int argc, char * argv[]) {

// Run selected command
command->run();

connection->leaveEventLoop();
} catch (libdnf5::cli::ArgumentParserError & ex) {
std::cerr << ex.what() << _(". Add \"--help\" for more information about the arguments.") << std::endl;
return static_cast<int>(libdnf5::cli::ExitCode::ARGPARSER_ERROR);
Expand Down

0 comments on commit 7ba21cc

Please sign in to comment.