mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 18:10:55 +00:00
fix panic: sync: negative WaitGroup counter
This commit is contained in:
parent
3d9286f089
commit
2b00b7d66d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user