#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())
|
if (LOG.isDebugEnabled())
|
||||||
LOG.debug("InputStream close");
|
LOG.debug("InputStream close");
|
||||||
|
|
||||||
Throwable failure = new AsynchronousCloseException();
|
if (!callbacks.isEmpty())
|
||||||
callbacks.forEach(callback -> callback.failed(failure));
|
{
|
||||||
|
Throwable failure = new AsynchronousCloseException();
|
||||||
|
callbacks.forEach(callback -> callback.failed(failure));
|
||||||
|
}
|
||||||
|
|
||||||
super.close();
|
super.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue