forked from I2P_Developers/i2p.i2p
quick prng workaround
This commit is contained in:
@@ -109,7 +109,10 @@ public class AsyncFortunaStandalone extends FortunaStandalone implements Runnabl
|
|||||||
asyncBuffers.notifyAll();
|
asyncBuffers.notifyAll();
|
||||||
}
|
}
|
||||||
Thread.yield();
|
Thread.yield();
|
||||||
try { Thread.sleep((after-before)*5); } catch (InterruptedException ie) {}
|
long waitTime = (after-before)*5;
|
||||||
|
if (waitTime <= 0) // somehow postman saw waitTime show up as negative
|
||||||
|
waitTime = 50;
|
||||||
|
try { Thread.sleep(waitTime); } catch (InterruptedException ie) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user