do not exit accept loop on I2PExceptions, GitHub issue #123

dbus-notify
Zlatin Balevsky 2022-03-05 14:37:12 +00:00
parent 09c43b8b6c
commit 9e8d6fe013
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 3 additions and 1 deletions

View File

@ -123,7 +123,9 @@ class ConnectionAcceptor {
def incoming
try {
incoming = acceptor.accept()
} catch (I2PException i2PException) {
} catch (I2PException|ConnectException i2PException) {
if (shutdown)
throw i2PException
log.log(Level.WARNING, "I2P exception, maybe router disconnected?", i2PException)
Thread.sleep(10)
continue