core: added a wait group to chain manager for graceful shutdown

This commit is contained in:
obscuren
2015-04-30 17:50:23 +02:00
parent e4dba36892
commit 15873fafc0
2 changed files with 9 additions and 0 deletions

View File

@ -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()