forked from qt-creator/qt-creator
LSP: do not connect the clients finished signal multiple times to the manager
Change-Id: I3f4d176837eda7ef2cf672f9d9cbdd5ba7d54bbe Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -225,6 +225,7 @@ void LanguageClientManager::clientFinished(BaseClient *client)
|
||||
managerInstance->removeMarks(client->id());
|
||||
managerInstance->m_clients.removeAll(client);
|
||||
if (unexpectedFinish) {
|
||||
client->disconnect(managerInstance);
|
||||
client->log(tr("Unexpectedly finished. Restarting in %1 seconds.").arg(restartTimeoutS),
|
||||
Core::MessageManager::Flash);
|
||||
client->reset();
|
||||
|
||||
Reference in New Issue
Block a user