1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 00:50:54 +00:00
Beego/grace/conn.go
2015-09-10 16:35:40 +08:00

14 lines
162 B
Go

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