Browse Source

eth: stop p2p.Server on shutdown

Felix Lange 10 years ago
parent
commit
2f249fea44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      eth/backend.go

+ 1 - 1
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)
 }