Make runtimes invalid on shutdown to prevent furhter use
Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
parent
bb77300641
commit
ee24340f0c
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue