From 5e0c97a38e84d1cd23f4dcae5bc50352619b9502 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 16 Nov 2023 13:50:51 +0100 Subject: [PATCH] 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 --- src/plugins/languageclient/client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/languageclient/client.cpp b/src/plugins/languageclient/client.cpp index def0016f3ab..5a1fcc44668 100644 --- a/src/plugins/languageclient/client.cpp +++ b/src/plugins/languageclient/client.cpp @@ -1661,6 +1661,7 @@ void Client::setLogTarget(LogTarget target) void Client::start() { + d->m_shutdownTimer.stop(); LanguageClientManager::addClient(this); d->m_clientInterface->start(); }