diff --git a/src/libs/codemodelbackendipc/connectionclient.cpp b/src/libs/codemodelbackendipc/connectionclient.cpp index 6eb0ab97199612a1bdf7c8cf72caccd6757df97c..d3c96991153fe57131ac4eba03baf4b5ab7ec45f 100644 --- a/src/libs/codemodelbackendipc/connectionclient.cpp +++ b/src/libs/codemodelbackendipc/connectionclient.cpp @@ -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()