Changeset 253c157 for router


Ignore:
Timestamp:
Jun 11, 2018 12:10:04 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
aa98e54
Parents:
9c35a55
Message:

Don't exclusively use explicitPeers when specified for testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/tunnel/pool/TunnelPeerSelector.java

    r9c35a55 r253c157  
    106106            if (peers == null)
    107107                peers = ctx.getProperty("explicitPeers");
    108             if (peers != null)
     108            // only one out of 4 times so we don't break completely if peer doesn't build one
     109            if (peers != null && ctx.random().nextInt(4) == 0)
    109110                return true;
    110111        }
Note: See TracChangeset for help on using the changeset viewer.