v1.5.1 增强程序稳定性

This commit is contained in:
robin
2026-03-22 17:37:40 +08:00
parent afbaaa869c
commit 17e182b413
652 changed files with 22949 additions and 34397 deletions

View File

@@ -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()