@xuda.io/runtime-bundle 1.0.824 → 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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -8436,6 +8436,7 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8436
8436
|
};
|
|
8437
8437
|
|
|
8438
8438
|
let last_job_in_queue = 0;
|
|
8439
|
+
let run_stat;
|
|
8439
8440
|
const job_iterator = async function () {
|
|
8440
8441
|
let from_job_num_to_run = last_job_in_queue;
|
|
8441
8442
|
last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
|
|
@@ -8477,15 +8478,17 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8477
8478
|
this.attempt++;
|
|
8478
8479
|
}
|
|
8479
8480
|
// return job_iterator();
|
|
8481
|
+
run_stat = 0;
|
|
8480
8482
|
};
|
|
8481
8483
|
// job_iterator();
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8484
|
+
this._interval = setInterval(() => {
|
|
8485
|
+
if (!run_stat) {
|
|
8486
|
+
run_stat = 1;
|
|
8487
|
+
job_iterator();
|
|
8488
|
+
}
|
|
8489
|
+
}, 1);
|
|
8487
8490
|
|
|
8488
|
-
this._interval = setInterval(job_iterator, 1);
|
|
8491
|
+
// this._interval = setInterval(job_iterator, 1);
|
|
8489
8492
|
|
|
8490
8493
|
setInterval(async function () {
|
|
8491
8494
|
func.UI.ds_garbage_collector();
|
|
@@ -8437,6 +8437,7 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8437
8437
|
};
|
|
8438
8438
|
|
|
8439
8439
|
let last_job_in_queue = 0;
|
|
8440
|
+
let run_stat;
|
|
8440
8441
|
const job_iterator = async function () {
|
|
8441
8442
|
let from_job_num_to_run = last_job_in_queue;
|
|
8442
8443
|
last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
|
|
@@ -8478,15 +8479,17 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8478
8479
|
this.attempt++;
|
|
8479
8480
|
}
|
|
8480
8481
|
// return job_iterator();
|
|
8482
|
+
run_stat = 0;
|
|
8481
8483
|
};
|
|
8482
8484
|
// job_iterator();
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8485
|
+
this._interval = setInterval(() => {
|
|
8486
|
+
if (!run_stat) {
|
|
8487
|
+
run_stat = 1;
|
|
8488
|
+
job_iterator();
|
|
8489
|
+
}
|
|
8490
|
+
}, 1);
|
|
8488
8491
|
|
|
8489
|
-
this._interval = setInterval(job_iterator, 1);
|
|
8492
|
+
// this._interval = setInterval(job_iterator, 1);
|
|
8490
8493
|
|
|
8491
8494
|
setInterval(async function () {
|
|
8492
8495
|
func.UI.ds_garbage_collector();
|