consensus: stop wal

This commit is contained in:
Ethan Buchman 2018-07-01 12:53:51 -04:00
parent 3a0dff7db2
commit af703620d4
1 changed files with 1 additions and 4 deletions

View File

@ -320,10 +320,7 @@ func (cs *ConsensusState) OnStop() {
cs.timeoutTicker.Stop()
// Make BaseService.Wait() wait until cs.wal.Wait()
if cs.IsRunning() {
cs.wal.Wait()
}
cs.wal.Stop()
}
// Wait waits for the the main routine to return.