v1.5.1 增强程序稳定性
This commit is contained in:
@@ -70,7 +70,8 @@ func (this *NodeStatusExecutor) Listen() {
|
||||
}
|
||||
|
||||
func (this *NodeStatusExecutor) update() {
|
||||
if sharedNodeConfig == nil {
|
||||
var cfg = nodeConfig()
|
||||
if cfg == nil {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -83,7 +84,7 @@ func (this *NodeStatusExecutor) update() {
|
||||
status.OS = runtime.GOOS
|
||||
status.Arch = runtime.GOARCH
|
||||
status.ExePath, _ = os.Executable()
|
||||
status.ConfigVersion = sharedNodeConfig.Version
|
||||
status.ConfigVersion = cfg.Version
|
||||
status.IsActive = true
|
||||
status.ConnectionCount = sharedListenerManager.TotalActiveConnections()
|
||||
status.CacheTotalDiskSize = caches.SharedManager.TotalDiskSize()
|
||||
|
||||
Reference in New Issue
Block a user