Skip to content

Commit

Permalink
fix for (corectld) crasher bug introduced on 7f6b5bd when halting VMs
Browse files Browse the repository at this point in the history
Signed-off-by: António Meireles <[email protected]>
  • Loading branch information
AntonioMeireles committed Jul 12, 2016
1 parent 8fcb133 commit 240d794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/server/rpcservices.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 240d794

Please sign in to comment.