Skip to content

swaps: destroy swap transport on failed initialization#10753

Merged
ecdsa merged 1 commit into
spesmilo:masterfrom
f321x:destroy_swap_transport
Jul 16, 2026
Merged

swaps: destroy swap transport on failed initialization#10753
ecdsa merged 1 commit into
spesmilo:masterfrom
f321x:destroy_swap_transport

Conversation

@f321x

@f321x f321x commented Jul 14, 2026

Copy link
Copy Markdown
Member

Call swap_transport.destroy() when the swap transport initialization task fails, otherwise the swap transport tasks will stay alive after a connection failure, leaking resources.

Call `swap_transport.destroy()` when the swap transport initialization
task fails, otherwise the task will keep the swap transport tasks alive,
leaking a swap transport for each failed connection attempt.
@f321x f321x added the bug 🐞 label Jul 14, 2026
@ecdsa
ecdsa merged commit cda4143 into spesmilo:master Jul 16, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants