mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-07 10:10:32 +08:00
修复TOA管理中可能出现的panic错误
This commit is contained in:
@@ -42,7 +42,9 @@ func (this *TOAManager) Run(config *nodeconfigs.TOAConfig) error {
|
||||
if err != nil {
|
||||
remotelogs.Error("TOA", "quit error: "+err.Error())
|
||||
}
|
||||
_ = this.conn.Close()
|
||||
if this.conn != nil {
|
||||
_ = this.conn.Close()
|
||||
}
|
||||
this.conn = nil
|
||||
this.pid = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user