mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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:
parent
21d7d14178
commit
1b3481fe25
@ -158,6 +158,7 @@ func (s *PeerServer) Stop() {
|
||||
close(s.closeChan)
|
||||
s.closeChan = nil
|
||||
}
|
||||
s.raftServer.Stop()
|
||||
}
|
||||
|
||||
func (s *PeerServer) HTTPHandler() http.Handler {
|
||||
|
Loading…
x
Reference in New Issue
Block a user