models/msg: fix current connections statistics problem

This commit is contained in:
fatedier
2016-08-12 10:07:02 +08:00
parent e3bf7e2b2b
commit ddd2acfe9f
2 changed files with 4 additions and 2 deletions

View File

@@ -178,10 +178,8 @@ func (p *ProxyServer) Start(c *conn.Conn) (err error) {
log.Debug("Join two connections, (l[%s] r[%s]) (l[%s] r[%s])", workConn.GetLocalAddr(), workConn.GetRemoteAddr(),
userConn.GetLocalAddr(), userConn.GetRemoteAddr())
metric.OpenConnection(p.Name)
needRecord := true
go msg.JoinMore(userConn, workConn, p.BaseConf, needRecord)
metric.OpenConnection(p.Name)
}(c)
}
}(listener)