forked from qt-creator/qt-creator
Clang: Remove ClangCodeModelClientDispatcher
We always use one client and the dispatching is removing to possibility of moving commands. Moving the client to IpcServerInterface improves the code sharing. Change-Id: I5f102ab7907239572534b7d4c2848abbaade69b6 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -42,6 +42,8 @@ ConnectionServer::ConnectionServer(const QString &connectionName)
|
||||
{
|
||||
this->connectionName = connectionName;
|
||||
|
||||
localServer.setMaxPendingConnections(1);
|
||||
|
||||
connect(&localServer, &QLocalServer::newConnection, this, &ConnectionServer::handleNewConnection);
|
||||
std::atexit(&ConnectionServer::removeServer);
|
||||
#if defined(_GLIBCXX_HAVE_AT_QUICK_EXIT)
|
||||
@@ -85,7 +87,7 @@ void ConnectionServer::handleNewConnection()
|
||||
|
||||
ipcServerProxies.emplace_back(ipcServer, localSocket);
|
||||
|
||||
ipcServer->addClient(&ipcServerProxies.back());
|
||||
ipcServer->setClient(&ipcServerProxies.back());
|
||||
|
||||
localSockets.push_back(localSocket);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user