removed eagerly resetting the bootstrap state to prevent concurrent access errors
This commit is contained in:
parent
716f508d66
commit
070a1cd6d9
12
core/base.go
12
core/base.go
|
@ -553,17 +553,7 @@ func (app *BaseApp) Restart() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// optimistically reset the app bootstrap state
|
return syscall.Exec(execPath, os.Args, os.Environ())
|
||||||
app.ResetBootstrapState()
|
|
||||||
|
|
||||||
if err := syscall.Exec(execPath, os.Args, os.Environ()); err != nil {
|
|
||||||
// restart the app bootstrap state
|
|
||||||
app.Bootstrap()
|
|
||||||
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// RefreshSettings reinitializes and reloads the stored application settings.
|
// RefreshSettings reinitializes and reloads the stored application settings.
|
||||||
|
|
Loading…
Reference in New Issue