From b62d0919632c100a5485befe14c6d2132f929230 Mon Sep 17 00:00:00 2001 From: kdeme Date: Thu, 11 Apr 2019 15:39:50 +0200 Subject: [PATCH] Remove double transport close --- eth/p2p.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/eth/p2p.nim b/eth/p2p.nim index f2ef064..c8feb9f 100644 --- a/eth/p2p.nim +++ b/eth/p2p.nim @@ -76,8 +76,6 @@ proc processIncoming(server: StreamServer, # malicious peer opens multiple connections debug "Disconnecting peer (incoming)", reason = AlreadyConnected await peer.disconnect(AlreadyConnected) - else: - remote.close() proc listeningAddress*(node: EthereumNode): ENode = return initENode(node.keys.pubKey, node.address)