This commit is contained in:
Manav Rathi
2024-08-19 15:46:52 +05:30
parent e6f26e62ae
commit d6151a89e8

View File

@@ -139,7 +139,7 @@ export class MLWorker {
/** Invoked in response to external events. */
private wakeUp() {
if (this.state == "idle") {
if (this.state == "init" || this.state == "idle") {
// We are currently paused. Get back to work.
if (this.idleTimeout) clearTimeout(this.idleTimeout);
this.idleTimeout = undefined;