@rotorsoft/act 1.23.9 → 1.23.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1750,9 +1750,14 @@ var DeferTimer = class {
1750
1750
  this._timer = setTimeout(() => {
1751
1751
  this._timer = void 0;
1752
1752
  const now = Date.now();
1753
+ let came_due = false;
1753
1754
  for (const [stream, at] of this._due)
1754
- if (at <= now) this._due.delete(stream);
1755
+ if (at <= now) {
1756
+ this._due.delete(stream);
1757
+ came_due = true;
1758
+ }
1755
1759
  this._on_wake();
1760
+ if (!came_due && this._due.size > 0) this.schedule();
1756
1761
  }, delay);
1757
1762
  this._timer.unref();
1758
1763
  }