From cd2eaebd923f2da029a54d08df3ac4d9a1dc6bae Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 8 Oct 2013 06:36:59 +0200 Subject: [PATCH] [#1895] Fix IllegalStateException which was produced during failing ChunkedWrite after the channel was closed --- .../main/java/io/netty/handler/stream/ChunkedWriteHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/src/main/java/io/netty/handler/stream/ChunkedWriteHandler.java b/handler/src/main/java/io/netty/handler/stream/ChunkedWriteHandler.java index 5ef5dfafb3..ec915cd250 100644 --- a/handler/src/main/java/io/netty/handler/stream/ChunkedWriteHandler.java +++ b/handler/src/main/java/io/netty/handler/stream/ChunkedWriteHandler.java @@ -351,7 +351,7 @@ public class ChunkedWriteHandler void fail(Throwable cause) { ReferenceCountUtil.release(msg); if (promise != null) { - promise.setFailure(cause); + promise.tryFailure(cause); } }