mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-28 21:50:26 +08:00
node: sync known sessions on disconnect
Make sure the service is current by removing disconnected peers. Signed-off-by: Slack Coder <slackcoder@server.ky>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user