General improvements and bug fixes

This commit is contained in:
driftingsun 2020-12-30 17:03:05 +03:00
parent 07974a7e34
commit 187fa0080a
10 changed files with 762 additions and 144 deletions

View file

@ -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) {