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 d8c0725 commit 716a622
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -514,16 +514,17 @@ 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;
}
sig = null;
if (model != null) {
model.session().close();
model.close();
}
model = null;
sig = null;
}

// TODO make only one
Expand Down

0 comments on commit 716a622

Please sign in to comment.