mirror of https://github.com/docker/docs.git
commit
0039ed3b5e
|
|
@ -231,7 +231,7 @@ func (e *Engine) isConnected() bool {
|
|||
// IsHealthy returns true if the engine is healthy
|
||||
func (e *Engine) IsHealthy() bool {
|
||||
e.RLock()
|
||||
e.RUnlock()
|
||||
defer e.RUnlock()
|
||||
return e.state == stateHealthy
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue