QTfrontend/newnetclient.cpp
changeset 2149 2eda77999bec
parent 2138 b246ad6484f5
child 2155 d897222d3339
equal deleted inserted replaced
2148:d124d0dfff73 2149:2eda77999bec
   159 }
   159 }
   160 
   160 
   161 void HWNewNet::ClientRead()
   161 void HWNewNet::ClientRead()
   162 {
   162 {
   163 	while (NetSocket.canReadLine()) {
   163 	while (NetSocket.canReadLine()) {
   164 		QString s = QString::fromUtf8(NetSocket.readLine().trimmed());
   164 		QString s = QString::fromUtf8(NetSocket.readLine());
       
   165 		if (s.endsWith('\n')) s.chop(1);
   165 
   166 
   166 		if (s.size() == 0) {
   167 		if (s.size() == 0) {
   167 			ParseCmd(cmdbuf);
   168 			ParseCmd(cmdbuf);
   168 			cmdbuf.clear();
   169 			cmdbuf.clear();
   169 		} else
   170 		} else