Make runtimes invalid on shutdown to prevent furhter use

Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
Matthew Heon 2017-09-05 10:29:46 -04:00
parent bb77300641
commit ee24340f0c

View file

@ -126,6 +126,8 @@ func (r *Runtime) Shutdown(force bool) error {
return fmt.Errorf("runtime has already been shut down") return fmt.Errorf("runtime has already been shut down")
} }
r.valid = false
_, err := r.store.Shutdown(force) _, err := r.store.Shutdown(force)
return err return err
} }