mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-03 06:37:14 +00:00
Update reactor.go (#5088)
check bcR.fastSync flag when "OnStop"
fix "service/service.go:161 Not stopping BlockPool -- have not been started yet {"impl": "BlockPool"}" error when kill process
This commit is contained in:
@@ -128,7 +128,9 @@ func (bcR *BlockchainReactor) SwitchToFastSync(state sm.State) error {
|
||||
|
||||
// OnStop implements service.Service.
|
||||
func (bcR *BlockchainReactor) OnStop() {
|
||||
bcR.pool.Stop()
|
||||
if bcR.fastSync {
|
||||
bcR.pool.Stop()
|
||||
}
|
||||
}
|
||||
|
||||
// GetChannels implements Reactor
|
||||
|
||||
Reference in New Issue
Block a user