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 90e4910 commit 40affdc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -490,16 +490,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 40affdc

Please sign in to comment.