Skip to content

Commit

Permalink
check parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
skiffer-git committed Nov 25, 2021
1 parent 1e2977f commit a4e565f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions open_im_sdk/init_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ func (u *UserRelated) login(uid, tk string, cb Base) {
return
}
sdkLog("login start, ", uid, tk)
if u.LoginState == Logining || u.LoginState == LoginSuccess {
cb.OnError(ErrCodeInitLogin, "Logining or LoginSuccess")
return
}

u.LoginState = Logining
u.token = tk
u.LoginUid = uid
Expand Down

0 comments on commit a4e565f

Please sign in to comment.