forked from qt-creator/qt-creator
LanguageClient: Fix possible crash
If a restart for a client has been staged for restart the shutdown of QC may coincide with the start of the client which leads to a crash on exit. Correctly track clients that never successfully started to clean them up on manager destruction. Change-Id: I639a76318d1665653fbcd37841fcaf407f3d3a83 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -1076,6 +1076,7 @@ void Client::setSnippetsGroup(const QString &group)
|
||||
|
||||
void Client::start()
|
||||
{
|
||||
LanguageClientManager::addClient(this);
|
||||
if (m_clientInterface->start())
|
||||
LanguageClientManager::clientStarted(this);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user