mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-13 18:50:39 +01:00
Don't await delay promise
This commit is contained in:
parent
2e50efc35c
commit
05b08f1ce2
@ -699,7 +699,7 @@ export function saveTtsProviderSettings() {
|
|||||||
async function onChatChanged() {
|
async function onChatChanged() {
|
||||||
await resetTtsPlayback();
|
await resetTtsPlayback();
|
||||||
const voiceMapInit = initVoiceMap();
|
const voiceMapInit = initVoiceMap();
|
||||||
await Promise.race([voiceMapInit, await delay(1000)]);
|
await Promise.race([voiceMapInit, delay(1000)]);
|
||||||
ttsLastMessage = null;
|
ttsLastMessage = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user