aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/configuration-chain.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/configuration-chain.go b/core/configuration-chain.go
index 5c389a7..a4636cb 100644
--- a/core/configuration-chain.go
+++ b/core/configuration-chain.go
@@ -107,6 +107,7 @@ func (cc *configurationChain) registerDKG(round uint64, threshold int) {
threshold)
go func() {
ticker := newTicker(cc.gov, round, TickerDKG)
+ defer ticker.Stop()
<-ticker.Tick()
cc.dkgLock.Lock()
defer cc.dkgLock.Unlock()
@@ -142,6 +143,7 @@ func (cc *configurationChain) runDKG(round uint64) error {
cc.dkgLock.Lock()
}
ticker := newTicker(cc.gov, round, TickerDKG)
+ defer ticker.Stop()
cc.dkgLock.Unlock()
<-ticker.Tick()
cc.dkgLock.Lock()