I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 48f29402 authored by zzz's avatar zzz
Browse files

snark log tweak

parent 123b4ca4
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ import java.io.BufferedInputStream; ...@@ -24,6 +24,7 @@ import java.io.BufferedInputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.net.ConnectException;
import net.i2p.I2PAppContext; import net.i2p.I2PAppContext;
import net.i2p.I2PException; import net.i2p.I2PException;
...@@ -213,6 +214,20 @@ class ConnectionAcceptor implements Runnable ...@@ -213,6 +214,20 @@ class ConnectionAcceptor implements Runnable
} }
} }
} }
catch (ConnectException ioe)
{
// This is presumed to be due to socket closing by I2PSnarkUtil.disconnect(),
// which does not currently call our halt(), although it should
if (_log.shouldWarn())
_log.warn("Error while accepting", ioe);
synchronized(this) {
if (!stop) {
locked_halt();
thread = null;
stop = true;
}
}
}
catch (IOException ioe) catch (IOException ioe)
{ {
int level = stop ? Log.WARN : Log.ERROR; int level = stop ? Log.WARN : Log.ERROR;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment