From 2560090df2872aaec9aba64d39694365ec8b84ee Mon Sep 17 00:00:00 2001 From: geek Date: Sun, 29 Apr 2018 18:08:38 +0900 Subject: [PATCH] ing --- service/ContainerService.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service/ContainerService.go b/service/ContainerService.go index c47287f..0e13d42 100644 --- a/service/ContainerService.go +++ b/service/ContainerService.go @@ -167,6 +167,9 @@ func (s *ContainerService) refreshContainer(containerType occp.ContainerType) { return } + cs.cmd.Process.Kill() + cs.cmd = nil + delete(s.connectorMap, cs.client.Connector) err := cs.client.Stop(context.Background()) if nil != err {