From 843057b89ab6821c13aa3549174803d49450de4a Mon Sep 17 00:00:00 2001 From: kraxarn Date: Sun, 17 Nov 2024 18:55:32 +0100 Subject: [PATCH] Disconnect all signals before terminating the process --- src/spotifyclient/runner.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/spotifyclient/runner.cpp b/src/spotifyclient/runner.cpp index aba426a3..dce7f2f5 100644 --- a/src/spotifyclient/runner.cpp +++ b/src/spotifyclient/runner.cpp @@ -1,4 +1,7 @@ #include "spotifyclient/runner.hpp" + +#include "lib/log.hpp" + #include "mainwindow.hpp" std::vector SpotifyClient::Runner::log; @@ -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(); }