diff options
author | Felix Lange <fjl@twurst.com> | 2015-05-17 02:51:13 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-05-25 07:17:14 +0800 |
commit | 2f249fea448a10ae0986a140f5a52d8a310e57fe (patch) | |
tree | ac921632f27e5698dcdcadd8d5423732b413d99c /eth/backend.go | |
parent | 394826f520f4c34fe11c8e9dc45c5810024a22e2 (diff) | |
download | dexon-2f249fea448a10ae0986a140f5a52d8a310e57fe.tar.gz dexon-2f249fea448a10ae0986a140f5a52d8a310e57fe.tar.zst dexon-2f249fea448a10ae0986a140f5a52d8a310e57fe.zip |
eth: stop p2p.Server on shutdown
Diffstat (limited to 'eth/backend.go')
-rw-r--r-- | eth/backend.go | 2 |
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) } |