mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 08:42:58 +00:00
prevent an NPE in case the connection is gone already(but that should not happen?)
This commit is contained in:
1 parent
2024fb1b65
commit
fc60768a66
1 file changed
+4
-1
@@ -383,7 +383,10 @@ public class EventPumper implements Runnable {
|
||||
ServerSocketChannel servChan = (ServerSocketChannel)key.attachment();
|
||||
try {
|
||||
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 (_log.shouldLog(Log.WARN))
|
||||
|
||||
Reference in new issue
Block a user