Put flush timer on right thread without parenting

This commit is contained in:
Clement 2019-09-20 15:39:35 -07:00
parent bd488f0196
commit 1ca30b688d
3 changed files with 3 additions and 3 deletions

View file

@ -240,7 +240,7 @@ AssignmentClientApp::AssignmentClientApp(int argc, char* argv[]) :
QThread::currentThread()->setObjectName("main thread");
LogHandler::getInstance().setParent(this);
LogHandler::getInstance().moveToThread(thread());
LogHandler::getInstance().setupRepeatedMessageFlusher();
DependencyManager::registerInheritance<LimitedNodeList, NodeList>();

View file

@ -174,7 +174,7 @@ DomainServer::DomainServer(int argc, char* argv[]) :
LogUtils::init();
LogHandler::getInstance().setParent(this);
LogHandler::getInstance().moveToThread(thread());
LogHandler::getInstance().setupRepeatedMessageFlusher();
qDebug() << "Setting up domain-server";

View file

@ -1062,7 +1062,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
setProperty(hifi::properties::STEAM, (steamClient && steamClient->isRunning()));
setProperty(hifi::properties::CRASHED, _previousSessionCrashed);
LogHandler::getInstance().setParent(this);
LogHandler::getInstance().moveToThread(thread());
LogHandler::getInstance().setupRepeatedMessageFlusher();
{