Close the messaging client on a data node when closing

Just setting it to nil was leaking resources
pull/2229/head
Jason Wilder 2015-04-07 14:35:25 -06:00
parent cf3a0c979d
commit a12bd42330
1 changed files with 4 additions and 2 deletions

View File

@ -262,8 +262,10 @@ func (s *Server) close() error {
s.done = nil
}
// Remove client.
if s.client != nil {
s.client.Close()
s.client = nil
}
// Close metastore.
_ = s.meta.close()