* Issue #2970 ensure onComplete is called * Cleanup after review - single try Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
edc47818e2
commit
efdf3c2473
|
@ -480,6 +480,8 @@ public class HttpChannel implements Runnable, HttpOutput.Interceptor
|
|||
}
|
||||
|
||||
case COMPLETE:
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!_response.isCommitted() && !_request.isHandled())
|
||||
{
|
||||
|
@ -503,11 +505,14 @@ public class HttpChannel implements Runnable, HttpOutput.Interceptor
|
|||
}
|
||||
}
|
||||
_response.closeOutput();
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
_request.setHandled(true);
|
||||
|
||||
_state.onComplete();
|
||||
|
||||
onCompleted();
|
||||
}
|
||||
|
||||
break loop;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue