mirror of https://github.com/status-im/nim-eth.git
Remove double transport close
This commit is contained in:
parent
3cd8172e65
commit
b62d091963
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue