forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user