mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-30 11:04:57 +01:00
Don't try to restart a worker while killing it.
This commit is contained in:
parent
694ffe42df
commit
34a24971c5
@ -173,6 +173,9 @@ template <typename HandlerType>
|
|||||||
WorkerPool<HandlerType>::~WorkerPool() {
|
WorkerPool<HandlerType>::~WorkerPool() {
|
||||||
foreach (const Worker& worker, workers_) {
|
foreach (const Worker& worker, workers_) {
|
||||||
if (worker.local_socket_ && worker.process_) {
|
if (worker.local_socket_ && worker.process_) {
|
||||||
|
disconnect(worker.process_, SIGNAL(error(QProcess::ProcessError)),
|
||||||
|
this, SLOT(ProcessError(QProcess::ProcessError)));
|
||||||
|
|
||||||
// The worker is connected. Close his socket and wait for him to exit.
|
// The worker is connected. Close his socket and wait for him to exit.
|
||||||
qLog(Debug) << "Closing worker socket";
|
qLog(Debug) << "Closing worker socket";
|
||||||
worker.local_socket_->close();
|
worker.local_socket_->close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user