break out of infinite loop if account is not found
@@ -1004,6 +1004,9 @@ func (b *OGame) withRetry(fn func() error) error {
retry(err)
if loginErr := b.wrapLogin(); loginErr != nil {
b.error(loginErr.Error()) // log error
+ if loginErr == ErrAccountNotFound {
+ return ErrAccountNotFound
+ }
continue
}
continue
