Make sure the exception event is fired from within an io thread. See #298

This commit is contained in:
norman 2012-05-02 11:29:20 +02:00
parent a688f9212e
commit 97069027a8

View File

@ -180,7 +180,11 @@ public class ChunkedWriteHandler implements ChannelUpstreamHandler, ChannelDowns
if (fireExceptionCaught) {
Channels.fireExceptionCaught(ctx.getChannel(), cause);
if (fireNow) {
Channels.fireExceptionCaught(ctx.getChannel(), cause);
} else {
Channels.fireExceptionCaughtLater(ctx.getChannel(), cause);
}
}
}