2005-12-22 jrandom

* Cleaned up some buffer synchronization issues in I2PSnark that could
       cause blockage.
This commit is contained in:
jrandom
2005-12-22 10:04:12 +00:00
committed by zzz
parent 98277d3b64
commit 148dd99c86
8 changed files with 31 additions and 17 deletions

View File

@@ -162,12 +162,14 @@ public class TrackerClient extends I2PThread
}
}
Random r = new Random();
while(!stop)
{
try
{
// Sleep some minutes...
Thread.sleep(SLEEP*60*1000);
int delay = SLEEP*60*1000 + r.nextInt(120*1000);
Thread.sleep(delay);
}
catch(InterruptedException interrupt)
{