From 90c4493a105ef33c1d10735489dce5a42c30b282 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 12 Jun 2015 13:36:38 +0200 Subject: eth, core: interupt the chain processing on stop Added an additional channel which is used to interupt the chain manager when it's processing blocks. --- eth/backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eth') diff --git a/eth/backend.go b/eth/backend.go index 60e9359dc..d2ec0cc62 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -527,8 +527,8 @@ func (self *Ethereum) AddPeer(nodeURL string) error { func (s *Ethereum) Stop() { s.net.Stop() - s.protocolManager.Stop() s.chainManager.Stop() + s.protocolManager.Stop() s.txPool.Stop() s.eventMux.Stop() if s.whisper != nil { -- cgit v1.2.3