QTfrontend/net/newnetclient.cpp
changeset 8534 92da587691c9
parent 8489 25cb6f4a1d1b
child 8559 29e420194558
--- a/QTfrontend/net/newnetclient.cpp	Thu Feb 21 01:37:04 2013 +0400
+++ b/QTfrontend/net/newnetclient.cpp	Thu Feb 21 22:20:43 2013 +0400
@@ -63,6 +63,8 @@
     connect(&NetSocket, SIGNAL(disconnected()), this, SLOT(OnDisconnect()));
     connect(&NetSocket, SIGNAL(error(QAbstractSocket::SocketError)), this,
             SLOT(displayError(QAbstractSocket::SocketError)));
+
+    connect(this, SIGNAL(messageProcessed()), this, SLOT(ClientRead()), Qt::QueuedConnection);
 }
 
 HWNewNet::~HWNewNet()
@@ -186,6 +188,8 @@
         {
             ParseCmd(cmdbuf);
             cmdbuf.clear();
+            emit messageProcessed();
+            return ;
         }
         else
             cmdbuf << s;