Skip to content

Commit 54e9909

Browse files
committed
fix: hanging while trying to invalidate token
1 parent 791a9d2 commit 54e9909

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

hashbot/hashbot.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ func (t *HashBot) BindClientFunctions() {
120120
// try to refresh our token if twitch returns a 401
121121
if strings.Contains(err.Error(), "401") {
122122
log.Warn().Msg("401 is in command fail error message, invalidating token")
123-
invalidatedTokenCh <- true
123+
go func() {
124+
invalidatedTokenCh <- true
125+
}()
124126
}
125127
}
126128
internalLatency := fmt.Sprintf("%d ms", time.Since(startTime).Milliseconds())

0 commit comments

Comments
 (0)