fix fs keep looping forever if there is no fallback TTS (#749)

This commit is contained in:
Hoan Luu Huu
2024-05-09 17:15:57 +07:00
committed by GitHub
parent 17c379df47
commit 5e97847a2f

View File

@@ -329,10 +329,10 @@ class TaskSay extends TtsTask {
} catch (err) { } catch (err) {
try { try {
await startFallback(err); await startFallback(err);
continue;
} catch (err) { } catch (err) {
this.logger.info({err}, 'Error waiting for playback-stop event'); this.logger.info({err}, 'Error waiting for playback-stop event');
} }
continue;
} finally { } finally {
this._playPromise = null; this._playPromise = null;
this._playResolve = null; this._playResolve = null;