diff --git a/router/java/src/net/i2p/router/transport/ntcp/EventPumper.java b/router/java/src/net/i2p/router/transport/ntcp/EventPumper.java index 9149323c8cbcdc87858138e834268b25a6e3fa6e..98a3127e4147d37d271dd8e7bb45198cbe401d5c 100644 --- a/router/java/src/net/i2p/router/transport/ntcp/EventPumper.java +++ b/router/java/src/net/i2p/router/transport/ntcp/EventPumper.java @@ -187,7 +187,11 @@ class EventPumper implements Runnable { } catch (IOException ioe) { if (_log.shouldLog(Log.WARN)) _log.warn("Error selecting", ioe); - } + } catch (CancelledKeyException cke) { + if (_log.shouldLog(Log.WARN)) + _log.warn("Error selecting", cke); + continue; + } if (lastFailsafeIteration + FAILSAFE_ITERATION_FREQ < System.currentTimeMillis()) { // in the *cough* unthinkable possibility that there are bugs in