Alex Potsides bdc9f16d0c
fix: clean up pending dial targets (#1059)
If the `Promise.race` throws, execution of the function is terminated so the pending dial target is never removed from the map and we leak memory.

This can happen when there are invalid multiaddrs or when a peer reports more dialable addresses than the threshold.

Instead wrap the `Promise.race` in a `try/finally` which will always remove the pending dial target in the event of success or failure.
2021-12-10 12:42:09 +00:00
..
2021-12-08 08:38:17 +00:00
2021-11-19 08:02:24 +00:00
2021-11-19 08:02:24 +00:00
2021-11-19 08:02:24 +00:00
2021-08-20 09:13:21 +02:00
2021-12-08 08:38:17 +00:00
2021-12-08 08:38:17 +00:00
2021-11-19 08:02:24 +00:00
2021-12-08 08:38:17 +00:00