1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-29 10:39:47 +01:00

Don't try to restart a worker while killing it.

This commit is contained in:
David Sansome 2012-01-22 18:52:24 +00:00
parent 694ffe42df
commit 34a24971c5

View File

@ -173,6 +173,9 @@ template <typename HandlerType>
WorkerPool<HandlerType>::~WorkerPool() {
foreach (const Worker& worker, workers_) {
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.
qLog(Debug) << "Closing worker socket";
worker.local_socket_->close();