From f07952944503a518f15b35c56a136de7475056e8 Mon Sep 17 00:00:00 2001 From: Lewis Marshall Date: Sun, 18 Jun 2017 12:14:34 +0200 Subject: [PATCH] p2p/simulations: Don't disconnect nodes before stopping Signed-off-by: Lewis Marshall --- p2p/simulations/network.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/p2p/simulations/network.go b/p2p/simulations/network.go index 5be6f45de3..2e6f24d514 100644 --- a/p2p/simulations/network.go +++ b/p2p/simulations/network.go @@ -589,14 +589,6 @@ func (self *Network) getConn(oneID, otherID discover.NodeID) *Conn { } func (self *Network) Shutdown() { - // disconnect all nodes - for _, conn := range self.Conns { - log.Debug(fmt.Sprintf("disconnecting %s from %s", conn.One.TerminalString(), conn.Other.TerminalString())) - if err := self.Disconnect(conn.One, conn.Other); err != nil { - log.Warn(fmt.Sprintf("error disconnecting %s from %s", conn.One.TerminalString(), conn.Other.TerminalString()), "err", err) - } - } - // stop all nodes for _, node := range self.Nodes { log.Debug(fmt.Sprintf("stopping node %s", node.ID().TerminalString()))