File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -671,7 +671,6 @@ InternalServer::InferResponseComplete(
671671 if (!is_decoupled) {
672672 infer_result->next_result_future_ .reset ();
673673 p->prev_promise_ ->set_value (std::move (infer_result));
674- p->prev_promise_ .reset ();
675674 } else {
676675 if ((flags & TRITONSERVER_RESPONSE_COMPLETE_FINAL ) == 0 ) {
677676 // Not the last response. Need to store the promise associated with the
@@ -686,17 +685,14 @@ InternalServer::InferResponseComplete(
686685 // The last response.
687686 infer_result->next_result_future_ .reset ();
688687 p->prev_promise_ ->set_value (std::move (infer_result));
689- p->prev_promise_ .reset ();
690688 }
691689 }
692690 } else if (
693691 is_decoupled && (flags & TRITONSERVER_RESPONSE_COMPLETE_FINAL ) != 0 ) {
694692 // An empty response may be the last response for decoupled models.
695693 p->prev_promise_ ->set_value (nullptr );
696- p->prev_promise_ .reset ();
697694 } else {
698695 p->prev_promise_ ->set_value (nullptr );
699- p->prev_promise_ .reset ();
700696 throw TritonException (" Unexpected empty response." );
701697 }
702698}
You can’t perform that action at this time.
0 commit comments