mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 18:00: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
|
closed bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c graceConn) Close() (err error) {
|
func (c *graceConn) Close() (err error) {
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
switch x := r.(type) {
|
switch x := r.(type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user