Skip to content

Commit 62a9a79

Browse files
committed
handle connection not being open
1 parent ee61f1f commit 62a9a79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hashbot/hashbot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func (t *HashBot) ConnectClient(login string, token string) error {
274274

275275
if t.TwitchClient != nil {
276276
err = t.TwitchClient.Disconnect()
277-
if err != nil {
277+
if !errors.Is(err, twitch.ErrConnectionIsNotOpen) {
278278
return err
279279
}
280280
}

0 commit comments

Comments
 (0)