prevent an NPE in case the connection is gone already(but that should not happen?)
This commit is contained in:
@ -383,7 +383,10 @@ public class EventPumper implements Runnable {
|
|||||||
ServerSocketChannel servChan = (ServerSocketChannel)key.attachment();
|
ServerSocketChannel servChan = (ServerSocketChannel)key.attachment();
|
||||||
try {
|
try {
|
||||||
SocketChannel chan = servChan.accept();
|
SocketChannel chan = servChan.accept();
|
||||||
chan.configureBlocking(false);
|
// don't throw an NPE if the connect is gone again
|
||||||
|
if(chan == null)
|
||||||
|
return;
|
||||||
|
chan.configureBlocking(false);;
|
||||||
|
|
||||||
if (!_transport.allowConnection()) {
|
if (!_transport.allowConnection()) {
|
||||||
if (_log.shouldLog(Log.WARN))
|
if (_log.shouldLog(Log.WARN))
|
||||||
|
Reference in New Issue
Block a user