chore(peer_server): adjust code to make it more clear

This commit is contained in:
Yicheng Qin
2014-05-08 13:20:46 -07:00
parent 5465201292
commit 5c7a963cf0

View File

@@ -321,10 +321,10 @@ func (s *PeerServer) asyncRemove() {
// TODO(yichengq): it should also call async stop for raft server,
// but this functionality has not been implemented.
go func() {
defer s.Unlock()
s.raftServer.Stop()
s.routineGroup.Wait()
close(s.removeNotify)
s.Unlock()
}()
}