* i2psnark: Clear PEX peers set after use, cause of bad peer counts

This commit is contained in:
zzz
2012-11-17 17:11:39 +00:00
parent d511bf2cd8
commit 74fd171131
2 changed files with 2 additions and 0 deletions

View File

@ -1439,6 +1439,7 @@ class PeerCoordinator implements PeerListener
/**
* Called by TrackerClient
* @return the Set itself, modifiable, not a copy, caller should clear()
* @since 0.8.4
*/
Set<PeerID> getPEXPeers() {

View File

@ -560,6 +560,7 @@ public class TrackerClient implements Runnable {
}
}
rv = pids.size();
pids.clear();
}
} else {
if (_log.shouldLog(Log.INFO))