mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-20 15:02:33 +00:00
fix
This commit is contained in:
@@ -247,9 +247,11 @@ func (r *Reactor) OnStop() {
|
||||
// wait for any remaining requests to complete
|
||||
<-r.dispatcher.Done()
|
||||
|
||||
r.syncer.Close()
|
||||
if r.syncer != nil {
|
||||
r.syncer.Close()
|
||||
|
||||
<-r.dispatcher.Done()
|
||||
<-r.syncer.Done()
|
||||
}
|
||||
|
||||
// Close closeCh to signal to all spawned goroutines to gracefully exit. All
|
||||
// p2p Channels should execute Close().
|
||||
|
||||
Reference in New Issue
Block a user