Avoid reading field twice (may lead to spurious NPEs).
This commit is contained in:
parent
386249f504
commit
ffdcfa5dde
|
@ -687,8 +687,9 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo
|
|||
{
|
||||
try
|
||||
{
|
||||
if (_key!=null)
|
||||
_key.cancel();
|
||||
SelectionKey key = _key;
|
||||
if (key!=null)
|
||||
key.cancel();
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue