@xuda.io/runtime-bundle 1.0.823 → 1.0.825

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.
@@ -27526,6 +27526,7 @@ func.UI.worker.init = async function (SESSION_ID) {
27526
27526
  };
27527
27527
 
27528
27528
  let last_job_in_queue = 0;
27529
+ let run_stat;
27529
27530
  const job_iterator = async function () {
27530
27531
  let from_job_num_to_run = last_job_in_queue;
27531
27532
  last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
@@ -27566,14 +27567,18 @@ func.UI.worker.init = async function (SESSION_ID) {
27566
27567
 
27567
27568
  this.attempt++;
27568
27569
  }
27569
- return job_iterator();
27570
+ // return job_iterator();
27571
+ run_stat = 0;
27570
27572
  };
27571
- job_iterator();
27572
- // this._interval = setInterval(() => {
27573
- // if (typeof UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === null) {
27574
- // job_iterator();
27575
- // }
27576
- // }, 1);
27573
+ // job_iterator();
27574
+ this._interval = setInterval(() => {
27575
+ if (!run_stat) {
27576
+ run_stat = 1;
27577
+ job_iterator();
27578
+ }
27579
+ }, 1);
27580
+
27581
+ // this._interval = setInterval(job_iterator, 1);
27577
27582
 
27578
27583
  setInterval(async function () {
27579
27584
  func.UI.ds_garbage_collector();