1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-03-18 21:57:50 +02:00

removed eagerly resetting the bootstrap state to prevent concurrent access errors

This commit is contained in:
Gani Georgiev 2023-12-03 12:36:51 +02:00
parent 716f508d66
commit 070a1cd6d9

View File

@ -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.