Skip to content
Snippets Groups Projects
Commit 287a2630 authored by Marco Bubke's avatar Marco Bubke Committed by Nikolai Kosjar
Browse files

CmbIpc: Remove workaround


Is fixed by the right block size.

Change-Id: If3b961625925cd82740fad0f469784b4d224bac1
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 97d3d9ac
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment