Skip to content

Commit 2f249fe

Browse files
committed
eth: stop p2p.Server on shutdown
1 parent 394826f commit 2f249fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎eth/backend.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ func (self *Ethereum) AddPeer(nodeURL string) error {
535535
func (s *Ethereum) Stop() {
536536
s.txSub.Unsubscribe() // quits txBroadcastLoop
537537

538+
s.net.Stop()
538539
s.protocolManager.Stop()
539540
s.chainManager.Stop()
540541
s.txPool.Stop()
@@ -544,7 +545,6 @@ func (s *Ethereum) Stop() {
544545
}
545546
s.StopAutoDAG()
546547

547-
glog.V(logger.Info).Infoln("Server stopped")
548548
close(s.shutdownChan)
549549
}
550550

0 commit comments

Comments
 (0)