Skip to content

Commit

Permalink
Change HandleShortCircuitedErrors to always end unclosed responses
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 20, 2021
1 parent d00bfeb commit d30a79b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ServiceStack/ServiceStackHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1020,15 +1020,11 @@ public virtual async Task HandleShortCircuitedErrors(IRequest req, IResponse res
{
await handler.ProcessRequestAsync(req, res, req.OperationName);
}
else
{
await res.EndRequestAsync().ConfigAwait();
}
}
}
finally
{
if (response == null)
if (!res.IsClosed)
{
await res.EndRequestAsync().ConfigAwait();
}
Expand Down

0 comments on commit d30a79b

Please sign in to comment.