You've already forked pocketbase
mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-11-25 07:34:10 +02:00
remove the unnecessary App.ResetBootstrapState calls as sqlite connections will be closed anyway with the process termination
This commit is contained in:
@@ -561,8 +561,6 @@ func (app *BaseApp) Restart() error {
|
||||
terminateErr := app.OnTerminate().Trigger(&TerminateEvent{
|
||||
App: app,
|
||||
IsRestart: true,
|
||||
}, func(e *TerminateEvent) error {
|
||||
return e.App.ResetBootstrapState()
|
||||
})
|
||||
if terminateErr != nil {
|
||||
return terminateErr
|
||||
|
||||
Reference in New Issue
Block a user