Protect shutdown callbacks lists with a mutex (#2432)

This commit is contained in:
Anis Elleuch
2016-08-15 07:55:48 +01:00
committed by Harshavardhana
parent 9606cb9bcd
commit 5526ac13d2
9 changed files with 150 additions and 97 deletions
+2 -1
View File
@@ -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
})