Commit 2f249fea authored by Felix Lange's avatar Felix Lange

eth: stop p2p.Server on shutdown

parent 394826f5
...@@ -535,6 +535,7 @@ func (self *Ethereum) AddPeer(nodeURL string) error { ...@@ -535,6 +535,7 @@ func (self *Ethereum) AddPeer(nodeURL string) error {
func (s *Ethereum) Stop() { func (s *Ethereum) Stop() {
s.txSub.Unsubscribe() // quits txBroadcastLoop s.txSub.Unsubscribe() // quits txBroadcastLoop
s.net.Stop()
s.protocolManager.Stop() s.protocolManager.Stop()
s.chainManager.Stop() s.chainManager.Stop()
s.txPool.Stop() s.txPool.Stop()
...@@ -544,7 +545,6 @@ func (s *Ethereum) Stop() { ...@@ -544,7 +545,6 @@ func (s *Ethereum) Stop() {
} }
s.StopAutoDAG() s.StopAutoDAG()
glog.V(logger.Info).Infoln("Server stopped")
close(s.shutdownChan) close(s.shutdownChan)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment