Don't await delay promise
This commit is contained in:
parent
2e50efc35c
commit
05b08f1ce2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue