Commit 287a2630 authored by Marco Bubke's avatar Marco Bubke Committed by Nikolai Kosjar

CmbIpc: Remove workaround

Is fixed by the right block size.

Change-Id: If3b961625925cd82740fad0f469784b4d224bac1
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 97d3d9ac
......@@ -95,22 +95,10 @@ bool ConnectionClient::isConnected() const
return localSocket.state() == QLocalSocket::ConnectedState;
}
void ConnectionClient::waitUntilSocketIsFlushed() const
{
// Avoid to call QAbstractSocket::waitForBytesWritten(), which is known to
// be unreliable on Windows. Instead, call processEvents() to actually send
// the data.
while (localSocket.bytesToWrite() > 0) {
QCoreApplication::processEvents();
QThread::msleep(20);
}
}
void ConnectionClient::sendEndCommand()
{
serverProxy_.end();
localSocket.flush();
waitUntilSocketIsFlushed();
}
void ConnectionClient::resetProcessAliveTimer()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment