mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
General improvements and bug fixes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user