* i2psnark: Backport TrackerClient NPE fix

This commit is contained in:
zzz
2010-12-26 12:32:17 +00:00
parent c54b40288b
commit 66f3484508
2 changed files with 4 additions and 4 deletions

View File

@@ -276,7 +276,7 @@ public class TrackerClient extends I2PAppThread
// only delay if we actually make an attempt to add peer
if(coordinator.addPeer(cur)) {
int delay = DELAY_MUL;
delay *= ((int)cur.getPeerID().getAddress().calculateHash().toBase64().charAt(0)) % 10;
delay *= r.nextInt(10);
delay += DELAY_MIN;
sleptTime += delay;
try { Thread.sleep(delay); } catch (InterruptedException ie) {}