1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-18 10:30:55 +00:00
Beego/grace/conn.go
2015-05-27 23:46:45 +08:00

14 lines
167 B
Go

package grace
import "net"
type graceConn struct {
net.Conn
server *graceServer
}
func (c graceConn) Close() error {
c.server.wg.Done()
return c.Conn.Close()
}