Skip to content

Commit

Permalink
fix: correct stop inferencing condition (#1796)
Browse files Browse the repository at this point in the history
Co-authored-by: vansangpfiev <[email protected]>
  • Loading branch information
vansangpfiev and sangjanai authored Dec 13, 2024
1 parent a64af00 commit 5e84fb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/controllers/server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ void server::ProcessStreamRes(std::function<void(const HttpResponsePtr&)> cb,
std::size_t buf_size) -> std::size_t {
if (buf == nullptr) {
LOG_TRACE << "Buf is null";
inference_svc_->StopInferencing(engine_type, model_id);
if (!(*err_or_done)) {
inference_svc_->StopInferencing(engine_type, model_id);
}
return 0;
}

Expand Down

0 comments on commit 5e84fb5

Please sign in to comment.