conn limit bug

pull/59/head
刘河 2019-02-25 13:55:10 +08:00
parent 6788f24821
commit 2c13a02bdc
1 changed files with 1 additions and 1 deletions

View File

@ -80,8 +80,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