mirror of
https://github.com/status-im/nim-eth-p2p.git
synced 2025-02-16 16:56:41 +00:00
Added TODO: close socket on error
This commit is contained in:
parent
f17352c243
commit
c0471a1376
@ -408,6 +408,7 @@ rlpxProtocol("p2p", 0):
|
||||
discard
|
||||
|
||||
proc rlpxConnect*(keys: KeyPair, address: Address): Future[Peer] {.async.} =
|
||||
# TODO: Make sure to close the socket in case of exception
|
||||
result.socket = newAsyncSocket()
|
||||
await result.socket.connect($address.ip, address.tcpPort)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user