Chore: linter

This commit is contained in:
Grail Finder
2025-05-19 10:42:10 +03:00
parent a7e7da6f99
commit 94df5b830c
6 changed files with 53 additions and 44 deletions

View File

@@ -46,17 +46,12 @@ type KokoroOrator struct {
}
func stoproutine(orator Orator) {
select {
case <-TTSDoneChan:
orator.GetLogger().Info("orator got done signal")
orator.Stop()
// close(TTSTextChan)
// TTSTextChan = make(chan string, 10000)
// drain the channel
for len(TTSTextChan) > 0 {
<-TTSTextChan
}
return
<-TTSDoneChan
orator.GetLogger().Info("orator got done signal")
orator.Stop()
// drain the channel
for len(TTSTextChan) > 0 {
<-TTSTextChan
}
}