fix(server/peer_server): stop the raftServer in Stop()

Stop() the raftServer if we stop the peerServer so that tests that start
and stop PeerServers exit cleanly.
This commit is contained in:
Brandon Philips 2014-02-06 20:55:32 -08:00
parent 21d7d14178
commit 1b3481fe25

View File

@ -158,6 +158,7 @@ func (s *PeerServer) Stop() {
close(s.closeChan)
s.closeChan = nil
}
s.raftServer.Stop()
}
func (s *PeerServer) HTTPHandler() http.Handler {