Skip to content

Commit 8cbb273

Browse files
committed
adressed race-condition comment
1 parent 2e861af commit 8cbb273

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vscode/src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
8383

8484

8585
export function deactivate(): Thenable<void> {
86-
const process = globalVars.nbProcessManager;
87-
if (process?.getProcess() != null) {
88-
process?.getProcess()?.kill();
86+
const process = globalVars.nbProcessManager?.getProcess();
87+
if (process != null) {
88+
process?.kill();
8989
}
9090
return globalVars.clientPromise.stopClient();
9191
}

0 commit comments

Comments
 (0)