From 070a1cd6d9e7fe1da2bd721864cbbb1b2e39adea Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sun, 3 Dec 2023 12:36:51 +0200 Subject: [PATCH] removed eagerly resetting the bootstrap state to prevent concurrent access errors --- core/base.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/core/base.go b/core/base.go index f23cb181..e80baff4 100644 --- a/core/base.go +++ b/core/base.go @@ -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.