Fix possible NPE which will be thrown if the Buffer was set to null and after that Exception was thrown. See #166
This commit is contained in:
parent
dbc37c1e19
commit
8c6820be64
@ -484,7 +484,9 @@ class NioWorker implements Runnable {
|
||||
} catch (AsynchronousCloseException e) {
|
||||
// Doesn't need a user attention - ignore.
|
||||
} catch (Throwable t) {
|
||||
buf.release();
|
||||
if (buf != null) {
|
||||
buf.release();
|
||||
}
|
||||
channel.currentWriteEvent = null;
|
||||
channel.currentWriteBuffer = null;
|
||||
buf = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user