aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-30 23:50:23 +0800
committerobscuren <geffobscura@gmail.com>2015-04-30 23:50:47 +0800
commit15873fafc02e444c38de722277ab2461cb9b82c5 (patch)
tree8d9f155055a2fd8b1f1ebcd1e2ba9777a84fc786 /eth
parente4dba36892477f3ef614dd4e4f1234ae4a4e26d0 (diff)
downloadgo-tangerine-15873fafc02e444c38de722277ab2461cb9b82c5.tar.gz
go-tangerine-15873fafc02e444c38de722277ab2461cb9b82c5.tar.zst
go-tangerine-15873fafc02e444c38de722277ab2461cb9b82c5.zip
core: added a wait group to chain manager for graceful shutdown
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/eth/backend.go b/eth/backend.go
index c5fa328b0..11a63cca9 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -454,6 +454,7 @@ func (self *Ethereum) SuggestPeer(nodeURL string) error {
func (s *Ethereum) Stop() {
s.txSub.Unsubscribe() // quits txBroadcastLoop
+ s.chainManager.Stop()
s.protocolManager.Stop()
s.txPool.Stop()
s.eventMux.Stop()