Skip to content

Commit

Permalink
Attempt to terminate the process normally
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyer committed Jan 28, 2025
1 parent 5c7562a commit d8b7654
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ public void detach() {

@Override
public void terminate() {
if (vm.process() == null || vm.process().isAlive()) {
if (vm.process() != null && vm.process().isAlive()) {
vm.process().destroy();
} else if (vm.process() == null || vm.process().isAlive()) {
vm.exit(0);
}
}
Expand Down

0 comments on commit d8b7654

Please sign in to comment.