Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: sync known sessions on disconnect
Slack Coder committed 3 years ago
commit a91dcfb10034a02f35a1b1f1d57caa0d45daa414
parent 1d51afad285943849653053282c8adc0dde78aa1
1 file changed +2 -2
modified radicle-node/src/service.rs
@@ -566,8 +566,8 @@ where

                self.reactor.connect(*addr);
            } else {
-
                // TODO: Non-persistent peers should be removed from the
-
                // map here or at some later point.
+
                self.sessions.remove(&ip);
+
                self.maintain_connections();
            }
        }
    }