fix panic: sync: negative WaitGroup counter

This commit is contained in:
huwenbo 2017-06-13 20:15:43 +08:00
parent 3d9286f089
commit 2b00b7d66d
1 changed files with 1 additions and 1 deletions

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) {