aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/consensus.go')
-rw-r--r--core/consensus.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/consensus.go b/core/consensus.go
index 6cc0937..51c4e35 100644
--- a/core/consensus.go
+++ b/core/consensus.go
@@ -428,6 +428,11 @@ func (con *Consensus) runCRS() {
}
con.cfgModule.registerDKG(con.round+1, con.currentConfig.NumDKGSet/3)
<-ticker.Tick()
+ select {
+ case <-con.ctx.Done():
+ return
+ default:
+ }
// Change round.
con.round++
con.currentConfig = con.gov.Configuration(con.round)