seedsync: unregister() seed address after failed connection

This fixes a bug where failed connections would get stuck in the Connect
state, blocking the seedsync from retrying.
This commit is contained in:
draoi
2024-07-11 13:43:45 +02:00
parent 26075d753d
commit 3cdec217d1

View File

@@ -249,6 +249,9 @@ impl Slot {
self.failed.store(true, SeqCst);
// Free up this addr for future operations.
self.p2p().hosts().unregister(&self.addr);
// Reset the CondVar for future use.
self.reset();