From 7ba21cc96ad7da3b602b15972d343d0b4e211e8f Mon Sep 17 00:00:00 2001 From: Marek Blaha Date: Fri, 3 Jan 2025 15:45:12 +0100 Subject: [PATCH] dnfdaemon: Properly leave event loop Exit the event loop and properly join the serving thread. --- dnf5daemon-client/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dnf5daemon-client/main.cpp b/dnf5daemon-client/main.cpp index bab0243b5..e759bd336 100644 --- a/dnf5daemon-client/main.cpp +++ b/dnf5daemon-client/main.cpp @@ -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(libdnf5::cli::ExitCode::ARGPARSER_ERROR);