Skip to content

Commit

Permalink
Bugfix: Only stop state processor if it is running
Browse files Browse the repository at this point in the history
  • Loading branch information
jdowning100 authored and gameofpointers committed Sep 8, 2023
1 parent 8a1ab5e commit 4726655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/headerchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ func (hc *HeaderChain) Stop() {
hc.scope.Close()
hc.bc.scope.Close()
hc.wg.Wait()
if common.NodeLocation.Context() == common.ZONE_CTX {
if common.NodeLocation.Context() == common.ZONE_CTX && hc.ProcessingState() {
hc.bc.processor.Stop()
}
log.Info("headerchain stopped")
Expand Down

0 comments on commit 4726655

Please sign in to comment.