Skip to content

Commit

Permalink
properly close model
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Oct 3, 2024
1 parent b4f0158 commit e21a11f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ else if (task.status == TaskStatus.FAILED)
else if (task.status == TaskStatus.CRASHED)
throw new RuntimeException();
this.runner.close();
this.runner = null;
return;
} else if (this.interprocessing) {
return;
Expand All @@ -375,6 +376,7 @@ else if (task.status == TaskStatus.CRASHED)
return;
model.close();
model.deallocate();
model = null;
}

/**
Expand Down

0 comments on commit e21a11f

Please sign in to comment.