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.
This commit is contained in:
Kai Ludwig 2014-06-03 20:10:55 +02:00
parent 6061330826
commit 23b56bf174

View file

@ -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();