fix dialMusic keep running in infinity loop (#1085)

This commit is contained in:
Hoan Luu Huu
2025-02-18 19:08:19 +07:00
committed by GitHub
parent 7fa0041f6b
commit 9c05fd3deb

View File

@@ -230,10 +230,10 @@ class TaskDial extends Task {
try { try {
await this.epOther.play(this.dialMusic); await this.epOther.play(this.dialMusic);
} catch (err) { } catch (err) {
this.logger.error(err, `TaskDial:exec error playing ${this.dialMusic}`); this.logger.error(err, `TaskDial:exec error playing dialMusic ${this.dialMusic}`);
await sleepFor(1000); await sleepFor(1000);
} }
} while (!this.killed || !this.bridged); } while (!this.killed && !this.bridged && this._mediaPath === MediaPath.FullMedia);
})(); })();
} }
} }