From af703620d4423478968ab602716a2a51cbb02ac6 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Sun, 1 Jul 2018 12:53:51 -0400 Subject: [PATCH] consensus: stop wal --- consensus/state.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/consensus/state.go b/consensus/state.go index 78d528d09..a3196a2f4 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -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.