调整
This commit is contained in:
parent
b692da3054
commit
eaf6f57451
@ -79,11 +79,11 @@ func (c *wsConnect) Close() {
|
||||
defer c.mutex.Unlock()
|
||||
if c.isClosed == false {
|
||||
c.isClosed = true
|
||||
wsMgr.Remove(c)
|
||||
close(c.closeCh)
|
||||
if c.onDisconnect != nil {
|
||||
c.onDisconnect(c)
|
||||
}
|
||||
wsMgr.Remove(c)
|
||||
close(c.closeCh)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user