diff --git a/bot.go b/bot.go index f4d95af..a65c5f6 100644 --- a/bot.go +++ b/bot.go @@ -85,9 +85,12 @@ func (b *Bot) HotLogin(storage HotReloadStorage, retries ...bool) error { if !ok { return err } - if retErr == cookieInvalid { + // TODO add more error code handle here + switch retErr { + case cookieInvalid: return b.Login() } + return err } } return err