mirror of
https://github.com/minio/minio.git
synced 2025-05-21 09:33:50 -04:00
Fix a crash when service shutdown is signaled and object API is not ready yet (#2939)
This commit is contained in:
parent
17eeec6895
commit
f463d3ce42
@ -113,8 +113,9 @@ func (m *ServerMux) handleServiceSignals() error {
|
|||||||
if objAPI == nil {
|
if objAPI == nil {
|
||||||
// Server not initialized yet, exit happily.
|
// Server not initialized yet, exit happily.
|
||||||
runExitFn(nil)
|
runExitFn(nil)
|
||||||
|
} else {
|
||||||
|
runExitFn(objAPI.Shutdown())
|
||||||
}
|
}
|
||||||
runExitFn(objAPI.Shutdown())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user