mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-30 03:35:34 +00:00
service: change stop interface (#7816)
This commit is contained in:
@@ -219,11 +219,7 @@ func (r *Reactor) OnStart(ctx context.Context) error {
|
||||
func (r *Reactor) OnStop() {
|
||||
r.unsubscribeFromBroadcastEvents()
|
||||
|
||||
if err := r.state.Stop(); err != nil {
|
||||
if !errors.Is(err, service.ErrAlreadyStopped) {
|
||||
r.logger.Error("failed to stop consensus state", "err", err)
|
||||
}
|
||||
}
|
||||
r.state.Stop()
|
||||
|
||||
if !r.WaitSync() {
|
||||
r.state.Wait()
|
||||
|
||||
Reference in New Issue
Block a user