Set discovery thread priority to low #5017

This commit is contained in:
Christian Kamm 2016-07-05 13:53:57 +02:00
parent 3f3a679f81
commit bd7ec19644

View file

@ -773,7 +773,11 @@ void SyncEngine::startSync()
qDebug() << "#### Discovery start #################################################### >>";
_thread.start();
// Usually the discovery runs in the background: We want to avoid
// stealing too much time from other processes that the user might
// be interacting with at the time.
_thread.start(QThread::LowPriority);
_discoveryMainThread = new DiscoveryMainThread(account());
_discoveryMainThread->setParent(this);
connect(this, SIGNAL(finished(bool)), _discoveryMainThread, SLOT(deleteLater()));