mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user