add Close()

This commit is contained in:
nareix 2016-06-15 12:28:39 +08:00
parent a2b07cc407
commit 74f68bcc55

View File

@ -887,6 +887,10 @@ func (self *Client) Teardown() (err error) {
return
}
func (self *Client) Close() (err error) {
return self.conn.Conn.Close()
}
func (self *Client) poll() (err error) {
for {
var res Response