Conn limit bug

pull/59/head
刘河 2019-02-25 13:53:20 +08:00
parent f7898e019e
commit 204c53ddd3
1 changed files with 1 additions and 1 deletions

View File

@ -81,8 +81,8 @@ func (s *Client) AddConn() {
}
func (s *Client) GetConn() bool {
s.CutConn()
if s.MaxConn == 0 || s.NowConn < s.MaxConn {
s.CutConn()
return true
}
return false