Skip to content

Commit

Permalink
Disconnect all signals before terminating the process
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Nov 17, 2024
1 parent ca414b8 commit 843057b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/spotifyclient/runner.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#include "spotifyclient/runner.hpp"

#include "lib/log.hpp"

#include "mainwindow.hpp"

std::vector<lib::log_message> SpotifyClient::Runner::log;
Expand Down Expand Up @@ -31,6 +34,11 @@ SpotifyClient::Runner::~Runner()
{
if (process != nullptr)
{
if (process->disconnect())
{
lib::log::debug("Disconnected events from client process");
}

process->terminate();
process->waitForFinished();
}
Expand Down

0 comments on commit 843057b

Please sign in to comment.