mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-10 03:40:24 +08:00
优化代码
This commit is contained in:
@@ -682,7 +682,7 @@ func (this *Node) listenSock() error {
|
||||
if this.sock.IsListening() {
|
||||
reply, err := this.sock.Send(&gosock.Command{Code: "pid"})
|
||||
if err == nil {
|
||||
return errors.New("error: the process is already running, pid: " + maps.NewMap(reply.Params).GetString("pid"))
|
||||
return errors.New("error: the process is already running, pid: " + types.String(maps.NewMap(reply.Params).GetInt("pid")))
|
||||
} else {
|
||||
return errors.New("error: the process is already running")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user