Ehm... probably this will improve situation with desyncs
authorunc0rr
Wed, 13 Feb 2013 23:00:57 +0400
changeset 8504 9ff55b527d1b
parent 8503 e60c84b42f4d
child 8505 b899226cba41
Ehm... probably this will improve situation with desyncs
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Wed Feb 13 22:59:41 2013 +0400
+++ b/QTfrontend/hwform.cpp	Wed Feb 13 23:00:57 2013 +0400
@@ -1194,7 +1194,7 @@
 
     GoToPage(ID_PAGE_CONNECTING);
 
-    connect(hwnet, SIGNAL(AskForRunGame()), this, SLOT(CreateNetGame()));
+    connect(hwnet, SIGNAL(AskForRunGame()), this, SLOT(CreateNetGame()), Qt::QueuedConnection);
     connect(hwnet, SIGNAL(connected()), this, SLOT(NetConnected()), Qt::QueuedConnection);
     connect(hwnet, SIGNAL(Error(const QString&)), this, SLOT(NetError(const QString&)), Qt::QueuedConnection);
     connect(hwnet, SIGNAL(Warning(const QString&)), this, SLOT(NetWarning(const QString&)), Qt::QueuedConnection);
@@ -1234,8 +1234,9 @@
             hwnet, SLOT(askRoomsList()));
 
 // room status stuff
+// not queued because creates new signal/slot connection
     connect(hwnet, SIGNAL(roomMaster(bool)),
-            this, SLOT(NetGameChangeStatus(bool)), Qt::QueuedConnection);
+            this, SLOT(NetGameChangeStatus(bool)));
 
 // net page stuff
     connect(hwnet, SIGNAL(roomNameUpdated(const QString &)),