mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Remove redundant stopThread() signal
This commit is contained in:
@@ -158,7 +158,7 @@ Intro::~Intro()
|
||||
{
|
||||
delete ui;
|
||||
/* Ensure thread is finished before it is deleted */
|
||||
Q_EMIT stopThread();
|
||||
thread->quit();
|
||||
thread->wait();
|
||||
}
|
||||
|
||||
@@ -306,8 +306,7 @@ void Intro::startThread()
|
||||
connect(executor, &FreespaceChecker::reply, this, &Intro::setStatus);
|
||||
connect(this, &Intro::requestCheck, executor, &FreespaceChecker::check);
|
||||
/* make sure executor object is deleted in its own thread */
|
||||
connect(this, &Intro::stopThread, executor, &QObject::deleteLater);
|
||||
connect(this, &Intro::stopThread, thread, &QThread::quit);
|
||||
connect(thread, &QThread::finished, executor, &QObject::deleteLater);
|
||||
|
||||
thread->start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user