Prevent crashes when restarting the LSP server.

This commit is contained in:
Martín Lucas Golini
2025-06-14 14:03:58 -03:00
parent 4ba29c3c37
commit e4bf8215a6
4 changed files with 14 additions and 14 deletions

View File

@@ -1373,7 +1373,7 @@ bool LSPClientServer::needsAsync() {
}
bool LSPClientServer::isRunning() {
return mUsingProcess ? ( mProcess.isAlive() && !mProcess.isShuttingDown() &&
return mUsingProcess ? ( !mProcess.isShuttingDown() && mProcess.isAlive() &&
( !mUsingSocket || mSocket != nullptr ) )
: ( mUsingSocket && mSocket != nullptr );
}