forked from I2P_Developers/i2p.i2p
* i2psnark: Clear PEX peers set after use, cause of bad peer counts
This commit is contained in:
@@ -1439,6 +1439,7 @@ class PeerCoordinator implements PeerListener
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Called by TrackerClient
|
* Called by TrackerClient
|
||||||
|
* @return the Set itself, modifiable, not a copy, caller should clear()
|
||||||
* @since 0.8.4
|
* @since 0.8.4
|
||||||
*/
|
*/
|
||||||
Set<PeerID> getPEXPeers() {
|
Set<PeerID> getPEXPeers() {
|
||||||
|
@@ -560,6 +560,7 @@ public class TrackerClient implements Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
rv = pids.size();
|
rv = pids.size();
|
||||||
|
pids.clear();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (_log.shouldLog(Log.INFO))
|
if (_log.shouldLog(Log.INFO))
|
||||||
|
Reference in New Issue
Block a user