General improvements and bug fixes
This commit is contained in:
parent
07974a7e34
commit
187fa0080a
10 changed files with 762 additions and 144 deletions
|
@ -56,7 +56,7 @@ void LocalServer::onNewConnection()
|
|||
break;
|
||||
}
|
||||
|
||||
if (m_clientConnection->waitForReadyRead() && m_clientConnection->canReadLine()) {
|
||||
if (m_clientConnection->waitForReadyRead(1000) && m_clientConnection->canReadLine()) {
|
||||
char buf[1024];
|
||||
qint64 lineLength = m_clientConnection->readLine(buf, sizeof(buf));
|
||||
if (lineLength != -1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue