Fixed a bug where the future of the write request is sometimes not notified
This commit is contained in:
parent
9791a0327f
commit
596e62398f
@ -540,8 +540,10 @@ class NioDatagramWorker implements Runnable {
|
|||||||
} catch (final AsynchronousCloseException e) {
|
} catch (final AsynchronousCloseException e) {
|
||||||
// Doesn't need a user attention - ignore.
|
// Doesn't need a user attention - ignore.
|
||||||
channel.currentWriteEvent = evt;
|
channel.currentWriteEvent = evt;
|
||||||
|
channel.inWriteNowLoop = false;
|
||||||
} catch (final Throwable t) {
|
} catch (final Throwable t) {
|
||||||
channel.currentWriteEvent = null;
|
channel.currentWriteEvent = null;
|
||||||
|
channel.inWriteNowLoop = false;
|
||||||
evt.getFuture().setFailure(t);
|
evt.getFuture().setFailure(t);
|
||||||
evt = null;
|
evt = null;
|
||||||
fireExceptionCaught(channel, t);
|
fireExceptionCaught(channel, t);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user