summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/control/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/control/state.go')
-rw-r--r--pkg/sentry/control/state.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/control/state.go b/pkg/sentry/control/state.go
index d800f2c85..62eaca965 100644
--- a/pkg/sentry/control/state.go
+++ b/pkg/sentry/control/state.go
@@ -62,6 +62,7 @@ func (s *State) Save(o *SaveOpts, _ *struct{}) error {
Callback: func(err error) {
if err == nil {
log.Infof("Save succeeded: exiting...")
+ s.Kernel.SetSaveSuccess(false /* autosave */)
} else {
log.Warningf("Save failed: exiting...")
s.Kernel.SetSaveError(err)