Skip to content

Commit

Permalink
fix npe when onCompleteFailure happens after reset
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <[email protected]>
  • Loading branch information
lorban committed Aug 26, 2024
1 parent 0f28d47 commit f0cbbce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ private void externalAbort(Throwable failure, Promise<Boolean> promise)

private void internalAbort(HttpExchange exchange, Throwable failure)
{
anyToFailure(failure);
abortRequest(exchange);
if (anyToFailure(failure))
abortRequest(exchange);
}

private boolean updateRequestState(RequestState from, RequestState to)
Expand Down

0 comments on commit f0cbbce

Please sign in to comment.