mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 06:26:17 +03:00
Protect shutdown callbacks lists with a mutex (#2432)
This commit is contained in:
committed by
Harshavardhana
parent
9606cb9bcd
commit
5526ac13d2
+2
-1
@@ -259,7 +259,8 @@ func serverMain(c *cli.Context) {
|
||||
// Prints the formatted startup message.
|
||||
printStartupMessage(endPoints)
|
||||
|
||||
registerShutdown(func() errCode {
|
||||
// Register generic callbacks.
|
||||
globalShutdownCBs.AddGenericCB(func() errCode {
|
||||
// apiServer.Stop()
|
||||
return exitSuccess
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user