mirror of
https://github.com/AlistGo/alist.git
synced 2025-11-25 11:29:45 +08:00
perf(db): release database before exit
This commit is contained in:
@@ -100,7 +100,7 @@ the address is defined in config file`,
|
||||
signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM)
|
||||
<-quit
|
||||
utils.Log.Println("Shutdown server...")
|
||||
|
||||
Release()
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
|
||||
defer cancel()
|
||||
var wg sync.WaitGroup
|
||||
|
||||
Reference in New Issue
Block a user