Merge pull request #1908 from duglin/missingDefer

Add missing 'defer'
This commit is contained in:
Alexandre Beslic 2016-02-29 18:31:46 -08:00
commit 0039ed3b5e
1 changed files with 1 additions and 1 deletions

View File

@ -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
}