diff options
Diffstat (limited to 'p2p/simulations/network.go')
-rw-r--r-- | p2p/simulations/network.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/p2p/simulations/network.go b/p2p/simulations/network.go index caf428ece..0983e0a85 100644 --- a/p2p/simulations/network.go +++ b/p2p/simulations/network.go @@ -738,7 +738,6 @@ func (self *Network) executeNodeEvent(e *Event) error { func (self *Network) executeConnEvent(e *Event) error { if e.Conn.Up { return self.Connect(e.Conn.One, e.Conn.Other) - } else { - return self.Disconnect(e.Conn.One, e.Conn.Other) } + return self.Disconnect(e.Conn.One, e.Conn.Other) } |