Browse Source

逻辑bug

master
zrb 3 years ago
parent
commit
4ae71ca61e
  1. 2
      znet/connmanager.go

2
znet/connmanager.go

@ -78,7 +78,7 @@ func (connMgr *ConnManager) ClearConn() {
func (connMgr *ConnManager) ClearOneConn(connID uint32) { func (connMgr *ConnManager) ClearOneConn(connID uint32) {
connections:=connMgr.connections.Load().(map[uint32]ziface.IConnection) connections:=connMgr.connections.Load().(map[uint32]ziface.IConnection)
if conn, ok := connections[connID]; !ok {
if conn, ok := connections[connID]; ok {
//停止 //停止
conn.Stop() conn.Stop()
//删除 //删除

Loading…
Cancel
Save