Moved set priority

This commit is contained in:
NeoTheFox 2015-03-26 15:22:43 +03:00
parent ae27a3cc96
commit c4ba7c8e4f

View File

@ -71,7 +71,6 @@ MainWindow::MainWindow(QWidget *parent) :
//them inherit parent's priority
parserThread = new QThread(this);
senderThread = new QThread(this);
senderThread->setPriority(QThread::TimeCriticalPriority);
//Restore settings
firstrun = !settings.value("core/firstrun").toBool(); //firstrun is inverted!
@ -153,6 +152,7 @@ MainWindow::MainWindow(QWidget *parent) :
connect(this, &MainWindow::injectCommand, senderWorker, &Sender::injectCommand);
connect(this, &MainWindow::flushInjectionBuffer, senderWorker, &Sender::flushInjectionBuffer);
senderThread->start();
senderThread->setPriority(QThread::TimeCriticalPriority);
//Timers init
statusTimer->start();