fix sleeve consuming too much time at once.

This commit is contained in:
Olivier Gagnon
2021-10-09 14:31:06 -04:00
parent 752534bc4d
commit 2bf47c60df
5 changed files with 20 additions and 19 deletions
+2 -1
View File
@@ -189,7 +189,8 @@ function startNetscript1Script(workerScript: WorkerScript): Promise<WorkerScript
cb(res);
})
.catch(function (err: any) {
console.error(err);
// workerscript is when you cancel a delay
if (!(err instanceof WorkerScript)) console.error(err);
});
};
int.setProperty(scope, name, int.createAsyncFunction(tempWrapper));