We shouldn't call disconnectedFromPeer if we don't have a nodeobj yet,
because we wouldn't have called connectedToPeer. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6665 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -213,14 +213,15 @@ public class PeerNode
|
||||
// documentation inherited from interface ClientObserver
|
||||
public void clientDidLogoff (Client client)
|
||||
{
|
||||
if (nodeobj != null) {
|
||||
if (nodeobj == null) {
|
||||
return;
|
||||
}
|
||||
String nodeName = getNodeName();
|
||||
for (ClientInfo clinfo : nodeobj.clients) {
|
||||
_peermgr.clientLoggedOff(nodeName, clinfo);
|
||||
}
|
||||
|
||||
nodeobj.removeListener(_listener);
|
||||
}
|
||||
|
||||
_peermgr.disconnectedFromPeer(this);
|
||||
_listener = null;
|
||||
|
||||
Reference in New Issue
Block a user