forked from qt-creator/qt-creator
LanguageClient: fix restarting language servers
A timer is used to ensure a server shuts down after a certain amount of time. This timer needs to be reset after restarting the client otherwise the client gets forcefully deleted after the timeout. Change-Id: I804678ec9491328e3da11fd0f9faa59f6e5f7d92 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -1661,6 +1661,7 @@ void Client::setLogTarget(LogTarget target)
|
|||||||
|
|
||||||
void Client::start()
|
void Client::start()
|
||||||
{
|
{
|
||||||
|
d->m_shutdownTimer.stop();
|
||||||
LanguageClientManager::addClient(this);
|
LanguageClientManager::addClient(this);
|
||||||
d->m_clientInterface->start();
|
d->m_clientInterface->start();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user