Don't await delay promise

This commit is contained in:
Cohee 2023-12-10 21:51:16 +02:00
parent 2e50efc35c
commit 05b08f1ce2
1 changed files with 1 additions and 1 deletions

View File

@ -699,7 +699,7 @@ export function saveTtsProviderSettings() {
async function onChatChanged() {
await resetTtsPlayback();
const voiceMapInit = initVoiceMap();
await Promise.race([voiceMapInit, await delay(1000)]);
await Promise.race([voiceMapInit, delay(1000)]);
ttsLastMessage = null;
}