We need to set the exception on each MessageEvent. See #293

This commit is contained in:
Norman Maurer 2012-05-01 12:00:36 +02:00
parent 2a70df1c1c
commit b2e77beb46

View File

@ -892,7 +892,7 @@ abstract class AbstractNioWorker implements Worker {
} }
} }
} }
protected void cleanUpWriteBuffer(AbstractNioChannel channel) { protected void cleanUpWriteBuffer(AbstractNioChannel channel) {
Exception cause = null; Exception cause = null;
boolean fireExceptionCaught = false; boolean fireExceptionCaught = false;
@ -932,9 +932,10 @@ abstract class AbstractNioWorker implements Worker {
} else { } else {
cause = new ClosedChannelException(); cause = new ClosedChannelException();
} }
evt.getFuture().setFailure(cause);
fireExceptionCaught = true; fireExceptionCaught = true;
} }
evt.getFuture().setFailure(cause);
} }
} }