summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-01-10 10:59:27 +0300
committerGrail Finder <wohilas@gmail.com>2026-01-10 10:59:27 +0300
commitc498ed6424eb099135c51d06b9bb5b3e7b004bff (patch)
tree29d660b0b813badf44502f7ba93c04e0b412a558 /bot.go
parent8474b87c43650b53aa562a62aaac12d760aa5fc7 (diff)
Fix: flushchan signal
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/bot.go b/bot.go
index 1e405c8..4d6da58 100644
--- a/bot.go
+++ b/bot.go
@@ -664,11 +664,15 @@ out:
if scrollToEndEnabled {
tv.ScrollToEnd()
}
- // Send chunk to audio stream handler
if cfg.TTS_ENABLED {
+ // Send chunk to audio stream handler
TTSTextChan <- chunk
}
}
+ if cfg.TTS_ENABLED {
+ // msg is done; flush it down
+ TTSFlushChan <- true
+ }
break out
}
}