ClangCodeModel: Prevent restarting the same clangd client more than once

Change-Id: Ifd81a26506e48817b97c8ed1e5fa16ebb31d8c69
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2021-11-01 13:25:48 +01:00
parent bcebf65bb1
commit f08d0e3d3e

View File

@@ -475,7 +475,7 @@ void ClangModelManagerSupport::watchForExternalChanges()
return;
ClangdClient * const client = clientForProject(project);
if (client) {
if (client && !m_clientsToRestart.contains(client)) {
m_clientsToRestart.append(client);
timer->start();
}