diff --git a/sys/configure/configure.go b/sys/configure/configure.go index 71b2b36a3..356b89040 100644 --- a/sys/configure/configure.go +++ b/sys/configure/configure.go @@ -2,6 +2,7 @@ package configure import ( "fmt" + "go_dreamfactory/lego" "go_dreamfactory/lego/sys/log" "io/fs" "io/ioutil" @@ -192,7 +193,11 @@ func (this *Configure) checkConfigure() { } for _, v := range handle.events { if v != nil { - go v() + go func(f func()) { + defer lego.Recover("configure") + f() + }(v) + } } }