equal
deleted
inserted
replaced
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 |