v1.5.1 增强程序稳定性
This commit is contained in:
@@ -43,8 +43,9 @@ func init() {
|
||||
}
|
||||
|
||||
events.On(events.EventReload, func() {
|
||||
if sharedNodeConfig != nil {
|
||||
var scripts = sharedNodeConfig.CommonScripts // 拷贝为了安全操作
|
||||
var cfg = nodeConfig()
|
||||
if cfg != nil {
|
||||
var scripts = cfg.CommonScripts // 拷贝为了安全操作
|
||||
if js.IsSameCommonScripts(scripts) {
|
||||
if SharedJSPool == nil {
|
||||
createPool()
|
||||
@@ -60,8 +61,9 @@ func init() {
|
||||
|
||||
goman.New(func() {
|
||||
for range commonScriptsChangesChan {
|
||||
if sharedNodeConfig != nil {
|
||||
var scripts = sharedNodeConfig.CommonScripts // 拷贝为了安全操作
|
||||
var cfg = nodeConfig()
|
||||
if cfg != nil {
|
||||
var scripts = cfg.CommonScripts // 拷贝为了安全操作
|
||||
if js.IsSameCommonScripts(scripts) {
|
||||
if SharedJSPool == nil {
|
||||
createPool()
|
||||
|
||||
Reference in New Issue
Block a user