diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-30 23:50:23 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-30 23:50:47 +0800 |
commit | 15873fafc02e444c38de722277ab2461cb9b82c5 (patch) | |
tree | 8d9f155055a2fd8b1f1ebcd1e2ba9777a84fc786 /eth | |
parent | e4dba36892477f3ef614dd4e4f1234ae4a4e26d0 (diff) | |
download | go-tangerine-15873fafc02e444c38de722277ab2461cb9b82c5.tar go-tangerine-15873fafc02e444c38de722277ab2461cb9b82c5.tar.gz go-tangerine-15873fafc02e444c38de722277ab2461cb9b82c5.tar.bz2 go-tangerine-15873fafc02e444c38de722277ab2461cb9b82c5.tar.lz go-tangerine-15873fafc02e444c38de722277ab2461cb9b82c5.tar.xz 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.go | 1 |
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() |