Skip to content

Commit

Permalink
was/Client: remove redundant ReleaseControl() call
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Jan 19, 2025
1 parent 4a2d871 commit d9d29fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/was/Client.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,11 @@ WasClient::SubmitPendingResponse() noexcept
response.receiving_metadata = false;

if (response.released) {
/* must have been released already by
WasInputRelease() */
assert(IsControlReleased());

was_input_free_unused_p(&response.body);
ReleaseControl();

DestroyInvokeResponse(response.status, std::move(response.headers),
istream_null_new(caller_pool));
Expand Down

0 comments on commit d9d29fb

Please sign in to comment.