mirror of https://github.com/nodejs/node.git
Allow one extra ms in timer diff
Fixes sporadic test-next-tick-ordering.js failurespull/22966/head
parent
7c0f453b7c
commit
82e9da9fb7
|
@ -85,7 +85,7 @@ function insert(item, msecs) {
|
|||
var first;
|
||||
while (first = peek(list)) {
|
||||
var diff = now - first._idleStart;
|
||||
if (diff < msecs) {
|
||||
if (diff + 1 < msecs) {
|
||||
list.again(msecs - diff);
|
||||
debug(msecs + ' list wait because diff is ' + diff);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue