1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 03:40:55 +00:00
Beego/grace/conn.go

14 lines
162 B
Go
Raw Normal View History

2015-05-27 15:46:45 +00:00
package grace
import "net"
type graceConn struct {
net.Conn
2015-09-10 08:35:40 +00:00
server *Server
2015-05-27 15:46:45 +00:00
}
func (c graceConn) Close() error {
c.server.wg.Done()
return c.Conn.Close()
}