mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-08-14 07:09:57 +00:00
quick prng workaround
This commit is contained in:
@@ -109,7 +109,10 @@ public class AsyncFortunaStandalone extends FortunaStandalone implements Runnabl
|
||||
asyncBuffers.notifyAll();
|
||||
}
|
||||
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