Skip to content

Commit

Permalink
Add noti when failed to start voice service instead of turn off chat
Browse files Browse the repository at this point in the history
  • Loading branch information
qnkhuat committed Jul 21, 2021
1 parent 489430c commit de5198a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tstream/cmd/tstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func main() {
err = s.Start() // blocking call
if err != nil {
log.Printf("Failed to start tstream : %s", err)
fmt.Printf("Failed to start tstream : %s\n", err)
}
return
} else {
Expand Down
2 changes: 1 addition & 1 deletion tstream/pkg/streamer/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (c *Chat) Start() error {

if err := c.StartVoiceService(); err != nil {
log.Printf("Failed to start voice service : %s", err)
return err
c.addNoti(fmt.Sprintf("Failed to start voice service : %s", err))
}

// blocking call
Expand Down

0 comments on commit de5198a

Please sign in to comment.