From ee24340f0c8ca434426b14650c791f581cce62a7 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Tue, 5 Sep 2017 10:29:46 -0400 Subject: [PATCH] Make runtimes invalid on shutdown to prevent furhter use Signed-off-by: Matthew Heon --- libpod/runtime.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libpod/runtime.go b/libpod/runtime.go index 49068473..85b98e96 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -126,6 +126,8 @@ func (r *Runtime) Shutdown(force bool) error { return fmt.Errorf("runtime has already been shut down") } + r.valid = false + _, err := r.store.Shutdown(force) return err }