From 240d794b37a697488d5d9d3d563de3741f70b425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Meireles?= Date: Tue, 12 Jul 2016 14:16:02 +0100 Subject: [PATCH] fix for (corectld) crasher bug introduced on 7f6b5bd4 when halting VMs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: António Meireles --- components/server/rpcservices.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/server/rpcservices.go b/components/server/rpcservices.go index 564a46f..3eff155 100644 --- a/components/server/rpcservices.go +++ b/components/server/rpcservices.go @@ -299,7 +299,7 @@ func (s *RPCservice) StopVMs(r *http.Request, Daemon.Active[v].halt() for { Daemon.Lock() - stillAlive := Daemon.Active[v].exec.ProcessState.Exited() + _, stillAlive := Daemon.Active[v] Daemon.Unlock() if !stillAlive { break