mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
consensus: flush wal on stop (#3297)
Should fix #3295 Also partial fix of #3043
This commit is contained in:
committed by
Anton Kaliaev
parent
08dabab024
commit
dc6567c677
@ -116,6 +116,7 @@ func (wal *baseWAL) OnStart() error {
|
||||
// Use Wait() to ensure it's finished shutting down
|
||||
// before cleaning up files.
|
||||
func (wal *baseWAL) OnStop() {
|
||||
wal.group.Flush()
|
||||
wal.group.Stop()
|
||||
wal.group.Close()
|
||||
}
|
||||
|
Reference in New Issue
Block a user