libp2p / js-libp2p

The JavaScript Implementation of libp2p networking stack.
https://libp2p.io
Other
2.27k stars 435 forks source link

fix: use same promise when closing maconn multiple times #2487

Closed twoeths closed 3 months ago

twoeths commented 3 months ago

Title

Use same promise when closingMultiaddrConnection multiple time

See https://github.com/libp2p/js-libp2p/pull/2478#pullrequestreview-2000610558

Description

related to #2477

Change checklist

achingbrain commented 3 months ago

Thanks!

twoeths commented 3 months ago

@achingbrain could you please release libp2p-tcp? would like to test this fix with lodestar v1.18 to see if the leaked sockets are still there cc @wemeetagain

twoeths commented 3 months ago

v9.0.22 was released including this PR, thanks @achingbrain