1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 12:00:55 +00:00

fix panic: sync: negative WaitGroup counter

This commit is contained in:
huwenbo 2017-06-13 20:15:43 +08:00
parent 3d9286f089
commit 2b00b7d66d

View File

@ -13,7 +13,7 @@ type graceConn struct {
closed bool
}
func (c graceConn) Close() (err error) {
func (c *graceConn) Close() (err error) {
defer func() {
if r := recover(); r != nil {
switch x := r.(type) {