We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 791a9d2 commit 54e9909Copy full SHA for 54e9909
1 file changed
hashbot/hashbot.go
@@ -120,7 +120,9 @@ func (t *HashBot) BindClientFunctions() {
120
// try to refresh our token if twitch returns a 401
121
if strings.Contains(err.Error(), "401") {
122
log.Warn().Msg("401 is in command fail error message, invalidating token")
123
- invalidatedTokenCh <- true
+ go func() {
124
+ invalidatedTokenCh <- true
125
+ }()
126
}
127
128
internalLatency := fmt.Sprintf("%d ms", time.Since(startTime).Milliseconds())
0 commit comments