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) {
|
if (fireExceptionCaught) {
|
||||||
|
if (fireNow) {
|
||||||
Channels.fireExceptionCaught(ctx.getChannel(), cause);
|
Channels.fireExceptionCaught(ctx.getChannel(), cause);
|
||||||
|
} else {
|
||||||
|
Channels.fireExceptionCaughtLater(ctx.getChannel(), cause);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user