Changeset 48f29402


Ignore:
Timestamp:
Nov 11, 2015 1:20:42 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
03a99ada
Parents:
123b4ca
Message:

snark log tweak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/ConnectionAcceptor.java

    r123b4ca r48f29402  
    2525import java.io.InputStream;
    2626import java.io.OutputStream;
     27import java.net.ConnectException;
    2728
    2829import net.i2p.I2PAppContext;
     
    206207            if (_log.shouldLog(level))
    207208                _log.log(level, "Error while accepting", ioe);
     209            synchronized(this) {
     210                if (!stop) {
     211                    locked_halt();
     212                    thread = null;
     213                    stop = true;
     214                }
     215            }
     216          }
     217        catch (ConnectException ioe)
     218          {
     219            // This is presumed to be due to socket closing by I2PSnarkUtil.disconnect(),
     220            // which does not currently call our halt(), although it should
     221            if (_log.shouldWarn())
     222                _log.warn("Error while accepting", ioe);
    208223            synchronized(this) {
    209224                if (!stop) {
Note: See TracChangeset for help on using the changeset viewer.