Browse Source

consensus: stop wal

pull/1843/head v0.22.0-rc1
Ethan Buchman 6 years ago
parent
commit
af703620d4
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      consensus/state.go

+ 1
- 4
consensus/state.go 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.


Loading…
Cancel
Save