mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 22:44:15 +02:00
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:
parent
6061330826
commit
23b56bf174
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue