forked from I2P_Developers/i2p.i2p
2005-12-22 jrandom
* Cleaned up some buffer synchronization issues in I2PSnark that could
cause blockage.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user