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

@@ -702,18 +702,14 @@ bool ProjectBuildManager::hasCleanCommands( const std::string& name ) {
void ProjectBuildManager::cancelBuild() {
mCancelBuild = true;
if ( mProcess ) {
mProcess->destroy();
if ( mProcess )
mProcess->kill();
}
}
void ProjectBuildManager::cancelRun() {
mCancelRun = true;
if ( mProcessRun ) {
mProcessRun->destroy();
if ( mProcessRun )
mProcessRun->kill();
}
}
ProjectBuildConfiguration ProjectBuildManager::getConfig() const {