#9524 do not create AsynchronousCloseException unnecessarily
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
parent
6567a4478e
commit
e4f4828a0e
|
@ -359,8 +359,11 @@ public class InputStreamResponseListener extends Listener.Adapter
|
|||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("InputStream close");
|
||||
|
||||
if (!callbacks.isEmpty())
|
||||
{
|
||||
Throwable failure = new AsynchronousCloseException();
|
||||
callbacks.forEach(callback -> callback.failed(failure));
|
||||
}
|
||||
|
||||
super.close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue