[#1895] Fix IllegalStateException which was produced during failing ChunkedWrite after the channel was closed

This commit is contained in:
Norman Maurer 2013-10-08 06:36:59 +02:00
parent 8864792499
commit cd2eaebd92

View File

@ -351,7 +351,7 @@ public class ChunkedWriteHandler
void fail(Throwable cause) { void fail(Throwable cause) {
ReferenceCountUtil.release(msg); ReferenceCountUtil.release(msg);
if (promise != null) { if (promise != null) {
promise.setFailure(cause); promise.tryFailure(cause);
} }
} }