aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-05-17 02:51:13 +0800
committerFelix Lange <fjl@twurst.com>2015-05-25 07:17:14 +0800
commit2f249fea448a10ae0986a140f5a52d8a310e57fe (patch)
treeac921632f27e5698dcdcadd8d5423732b413d99c /eth
parent394826f520f4c34fe11c8e9dc45c5810024a22e2 (diff)
downloadgo-tangerine-2f249fea448a10ae0986a140f5a52d8a310e57fe.tar
go-tangerine-2f249fea448a10ae0986a140f5a52d8a310e57fe.tar.gz
go-tangerine-2f249fea448a10ae0986a140f5a52d8a310e57fe.tar.bz2
go-tangerine-2f249fea448a10ae0986a140f5a52d8a310e57fe.tar.lz
go-tangerine-2f249fea448a10ae0986a140f5a52d8a310e57fe.tar.xz
go-tangerine-2f249fea448a10ae0986a140f5a52d8a310e57fe.tar.zst
go-tangerine-2f249fea448a10ae0986a140f5a52d8a310e57fe.zip
eth: stop p2p.Server on shutdown
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 938071fc7..aeaac788a 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -535,6 +535,7 @@ func (self *Ethereum) AddPeer(nodeURL string) error {
func (s *Ethereum) Stop() {
s.txSub.Unsubscribe() // quits txBroadcastLoop
+ s.net.Stop()
s.protocolManager.Stop()
s.chainManager.Stop()
s.txPool.Stop()
@@ -544,7 +545,6 @@ func (s *Ethereum) Stop() {
}
s.StopAutoDAG()
- glog.V(logger.Info).Infoln("Server stopped")
close(s.shutdownChan)
}