Skip to content

Commit

Permalink
Updates from review.
Browse files Browse the repository at this point in the history
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Dec 15, 2023
1 parent ad46276 commit 80c183c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,14 @@ public Throwable completeResponse()
{
try (AutoLock ignored = lock())
{
// This method is called when the state machine
// is about to terminate the processing, just
// before completing the Handler's callback.
assert _outputState == OutputState.OPEN || _failure != null;

if (_outputState == OutputState.OPEN)
_outputState = OutputState.COMPLETED;

return _failure;
}
}
Expand Down

0 comments on commit 80c183c

Please sign in to comment.