consensus: wait on stop if not fastsync
This commit is contained in:
parent
9703a8825d
commit
9b0b0b02d0
|
@ -80,6 +80,9 @@ func (conR *ConsensusReactor) OnStop() {
|
|||
conR.BaseReactor.OnStop()
|
||||
conR.unsubscribeFromBroadcastEvents()
|
||||
conR.conS.Stop()
|
||||
if !conR.FastSync() {
|
||||
conR.conS.Wait()
|
||||
}
|
||||
}
|
||||
|
||||
// SwitchToConsensus switches from fast_sync mode to consensus mode.
|
||||
|
|
Loading…
Reference in New Issue