Make sure the exception event is fired from within an io thread. See #298
This commit is contained in:
parent
a688f9212e
commit
97069027a8
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user