From 0f7b5c22fc010ce29f90864511da4c1e48197ec8 Mon Sep 17 00:00:00 2001 From: mountain Date: Mon, 22 May 2023 15:39:19 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A4=91=EC=A7=80=EB=90=9C=20=ED=94=84?= =?UTF-8?q?=EB=A1=9C=EC=84=B8=EC=8A=A4=EB=8A=94=20=EB=AA=A9=EB=A1=9D?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/client.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/client.go b/client/client.go index db3c02c..e70efa0 100644 --- a/client/client.go +++ b/client/client.go @@ -202,13 +202,16 @@ func NewClient(grpcAddr string, httpAddr string) (HoustonClient, error) { return case exited := <-exitChan: + var newprocs []*procmeta for _, proc := range hc.childProcs { if proc.cmd == exited && proc.state != protos.ProcessState_Stopped { proc.state = protos.ProcessState_Stopped - op.Refresh(ctx, hc.makeOperationQueryRequest()) - break + } else { + newprocs = append(newprocs, proc) } } + hc.childProcs = newprocs + op.Refresh(ctx, hc.makeOperationQueryRequest()) case resp := <-operationChan: switch shared.Operation(resp.Operation) {