Skip to content

Commit

Permalink
removed eagerly resetting the bootstrap state to prevent concurrent a…
Browse files Browse the repository at this point in the history
…ccess errors
  • Loading branch information
ganigeorgiev committed Dec 3, 2023
1 parent 716f508 commit 070a1cd
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions core/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,17 +553,7 @@ func (app *BaseApp) Restart() error {
return err
}

// optimistically reset the app bootstrap state
app.ResetBootstrapState()

if err := syscall.Exec(execPath, os.Args, os.Environ()); err != nil {
// restart the app bootstrap state
app.Bootstrap()

return err
}

return nil
return syscall.Exec(execPath, os.Args, os.Environ())
}

// RefreshSettings reinitializes and reloads the stored application settings.
Expand Down

0 comments on commit 070a1cd

Please sign in to comment.