Even better: have the base PeerManager call clientLoggedOn and clientLoggedOff

for every client on another node when it connects or disconnects from that node.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5696 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2009-03-25 23:10:02 +00:00
parent 4a5136d3f0
commit 647a25dfdc
2 changed files with 20 additions and 19 deletions
@@ -184,19 +184,6 @@ public class CrowdPeerManager extends PeerManager
}
}
@Override // from PeerManager
protected void connectedToPeer (PeerNode peer)
{
super.connectedToPeer(peer);
for (ClientInfo clinfo : peer.nodeobj.clients) {
if (clinfo instanceof CrowdClientInfo) {
CrowdClientInfo ccinfo = (CrowdClientInfo)clinfo;
_viztoauth.put(ccinfo.visibleName, ccinfo.username);
}
}
}
/** A mapping of visible name to username for all clients on all *remote* nodes. */
protected Map<Name, Name> _viztoauth = Maps.newHashMap();