mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-17 23:39:04 +08:00
fix: sync close ws conn when kick old user avoid wrong trigger order about online status. (#1368)
This commit is contained in:
@@ -297,7 +297,9 @@ func (c *Client) KickOnlineMessage() error {
|
||||
resp := Resp{
|
||||
ReqIdentifier: WSKickOnlineMsg,
|
||||
}
|
||||
return c.writeBinaryMsg(resp)
|
||||
err := c.writeBinaryMsg(resp)
|
||||
c.close()
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *Client) writeBinaryMsg(resp Resp) error {
|
||||
|
||||
Reference in New Issue
Block a user