Don't need the record in createPeerNode().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5164 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -839,7 +839,7 @@ public class PeerManager
|
|||||||
{
|
{
|
||||||
PeerNode peer = _peers.get(record.nodeName);
|
PeerNode peer = _peers.get(record.nodeName);
|
||||||
if (peer == null) {
|
if (peer == null) {
|
||||||
_peers.put(record.nodeName, peer = createPeerNode(record));
|
_peers.put(record.nodeName, peer = createPeerNode());
|
||||||
peer.init(this, _omgr, record);
|
peer.init(this, _omgr, record);
|
||||||
}
|
}
|
||||||
peer.refresh(record);
|
peer.refresh(record);
|
||||||
@@ -942,7 +942,7 @@ public class PeerManager
|
|||||||
/**
|
/**
|
||||||
* Creates a {@link PeerNode} to manage our connection to the specified peer.
|
* Creates a {@link PeerNode} to manage our connection to the specified peer.
|
||||||
*/
|
*/
|
||||||
protected PeerNode createPeerNode (NodeRecord record)
|
protected PeerNode createPeerNode ()
|
||||||
{
|
{
|
||||||
return new PeerNode();
|
return new PeerNode();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user