modify close old connect connection logic
This commit is contained in:
1 parent
eeab0c6b7d
commit
a7fb7f1912
2 files changed
+21
-9
No files matched your search
+3
-1
@@ -35,6 +35,7 @@ type client struct {
|
||||
route *route
|
||||
status int
|
||||
smu sync.RWMutex
|
||||
mp *MessagePool
|
||||
subs map[string]*subscription
|
||||
rsubs map[string]*subInfo
|
||||
}
|
||||
@@ -84,8 +85,9 @@ func (c *client) init() {
|
||||
c.info.remoteIP = strings.Split(c.conn.RemoteAddr().String(), ":")[0]
|
||||
}
|
||||
|
||||
func (c *client) readLoop(msgPool *MessagePool) {
|
||||
func (c *client) readLoop() {
|
||||
nc := c.conn
|
||||
msgPool := c.mp
|
||||
if nc == nil || msgPool == nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user