abort when onError() fails
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
parent
bf9318f2b8
commit
4ec51fbbca
|
@ -701,9 +701,20 @@ public abstract class HttpChannel implements Runnable, HttpOutput.Interceptor
|
|||
}
|
||||
|
||||
if (isCommitted())
|
||||
{
|
||||
abort(failure);
|
||||
}
|
||||
else
|
||||
_state.onError(failure);
|
||||
{
|
||||
try
|
||||
{
|
||||
_state.onError(failure);
|
||||
}
|
||||
catch (IllegalStateException e)
|
||||
{
|
||||
abort(failure);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue