mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-01-24 22:32:42 +02:00
remove the unnecessary App.ResetBootstrapState calls as sqlite connections will be closed anyway with the process termination
This commit is contained in:
parent
4c473385b2
commit
d86e20b7f2
@ -561,8 +561,6 @@ func (app *BaseApp) Restart() error {
|
|||||||
terminateErr := app.OnTerminate().Trigger(&TerminateEvent{
|
terminateErr := app.OnTerminate().Trigger(&TerminateEvent{
|
||||||
App: app,
|
App: app,
|
||||||
IsRestart: true,
|
IsRestart: true,
|
||||||
}, func(e *TerminateEvent) error {
|
|
||||||
return e.App.ResetBootstrapState()
|
|
||||||
})
|
})
|
||||||
if terminateErr != nil {
|
if terminateErr != nil {
|
||||||
return terminateErr
|
return terminateErr
|
||||||
|
@ -168,8 +168,6 @@ func (pb *PocketBase) Execute() error {
|
|||||||
// trigger cleanups
|
// trigger cleanups
|
||||||
return pb.OnTerminate().Trigger(&core.TerminateEvent{
|
return pb.OnTerminate().Trigger(&core.TerminateEvent{
|
||||||
App: pb,
|
App: pb,
|
||||||
}, func(e *core.TerminateEvent) error {
|
|
||||||
return e.App.ResetBootstrapState()
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user