forked from qt-creator/qt-creator
LSP: Inform user about an unexpected server finish without restart attempt
A message is already printed after an unexpected finish with restart attempt. Without this last message it looks like Qt Creator still tries to restart the server. Change-Id: I47dd3e768d061a7d039ee3f125368c6e166ebf81 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -262,6 +262,8 @@ void LanguageClientManager::clientFinished(BaseClient *client)
|
|||||||
Core::MessageManager::Flash);
|
Core::MessageManager::Flash);
|
||||||
QTimer::singleShot(restartTimeoutS * 1000, client, [client](){ startClient(client); });
|
QTimer::singleShot(restartTimeoutS * 1000, client, [client](){ startClient(client); });
|
||||||
} else {
|
} else {
|
||||||
|
if (unexpectedFinish && !m_shuttingDown)
|
||||||
|
client->log(tr("Unexpectedly finished."), Core::MessageManager::Flash);
|
||||||
deleteClient(client);
|
deleteClient(client);
|
||||||
if (m_shuttingDown && m_clients.isEmpty())
|
if (m_shuttingDown && m_clients.isEmpty())
|
||||||
emit shutdownFinished();
|
emit shutdownFinished();
|
||||||
|
Reference in New Issue
Block a user