mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-06 02:41:29 +01:00
This commit fixes a bug that was introduced when the connection handling was re-worked to properly handle the case of concurrent connections being made. In certain cases after a successful initial connection, a peer’s stray goroutine would still attempt to establish a second outbound connection even though a connection had already been established. This was properly handled by the connecting peer, but not he receiving peer. This commit adds the additional logic to the receiving peer to ensure that we properly handle this case.
37 KiB
37 KiB