Allow one extra ms in timer diff
Fixes sporadic test-next-tick-ordering.js failures
This commit is contained in:
parent
7c0f453b7c
commit
82e9da9fb7
@ -85,7 +85,7 @@ function insert(item, msecs) {
|
|||||||
var first;
|
var first;
|
||||||
while (first = peek(list)) {
|
while (first = peek(list)) {
|
||||||
var diff = now - first._idleStart;
|
var diff = now - first._idleStart;
|
||||||
if (diff < msecs) {
|
if (diff + 1 < msecs) {
|
||||||
list.again(msecs - diff);
|
list.again(msecs - diff);
|
||||||
debug(msecs + ' list wait because diff is ' + diff);
|
debug(msecs + ' list wait because diff is ' + diff);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user