This fixes a bug where failed connections would get stuck in the Connect state, blocking the seedsync from retrying.
@@ -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();