From 23b56bf174c5adc1e38e835d3ef433f2e000c0ae Mon Sep 17 00:00:00 2001 From: Kai Ludwig Date: Tue, 3 Jun 2014 20:10:55 +0200 Subject: [PATCH] start timer BEFORE moving it to another thread, because Qt otherwise will protest and the timer does not run at all - at least on windows. this fixes restarted servers not getting properly recognized by the interface - at least on windows. --- interface/src/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index de3c354b27..0e1c80d3e9 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -292,8 +292,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : // move the silentNodeTimer to the _nodeThread QTimer* silentNodeTimer = new QTimer(); connect(silentNodeTimer, SIGNAL(timeout()), nodeList, SLOT(removeSilentNodes())); - silentNodeTimer->moveToThread(_nodeThread); silentNodeTimer->start(NODE_SILENCE_THRESHOLD_MSECS); + silentNodeTimer->moveToThread(_nodeThread); // send the identity packet for our avatar each second to our avatar mixer QTimer* identityPacketTimer = new QTimer();