No longer need this tracking.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5298 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -23,7 +23,6 @@ package com.threerings.presents.server;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
import java.util.Date;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.TimeZone;
|
import java.util.TimeZone;
|
||||||
|
|
||||||
@@ -557,10 +556,8 @@ public class PresentsClient
|
|||||||
}
|
}
|
||||||
if (rec != null) {
|
if (rec != null) {
|
||||||
rec.unsubscribe();
|
rec.unsubscribe();
|
||||||
_subhist.put(oid, "Unmapped at " + new Date()); // TEMP
|
|
||||||
} else {
|
} else {
|
||||||
log.warning("Missing subscription in unmap", "client", this, "oid", oid,
|
log.warning("Missing subscription in unmap", "client", this, "oid", oid);
|
||||||
"history", _subhist.get(oid));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -570,13 +567,11 @@ public class PresentsClient
|
|||||||
*/
|
*/
|
||||||
protected void clearSubscrips (boolean verbose)
|
protected void clearSubscrips (boolean verbose)
|
||||||
{
|
{
|
||||||
String now = new Date().toString();
|
|
||||||
for (ClientProxy rec : _subscrips.values()) {
|
for (ClientProxy rec : _subscrips.values()) {
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
log.info("Clearing subscription", "client", this, "obj", rec.object.getOid());
|
log.info("Clearing subscription", "client", this, "obj", rec.object.getOid());
|
||||||
}
|
}
|
||||||
rec.unsubscribe();
|
rec.unsubscribe();
|
||||||
_subhist.put(rec.object.getOid(), "Cleared at " + now); // TEMP
|
|
||||||
}
|
}
|
||||||
_subscrips.clear();
|
_subscrips.clear();
|
||||||
}
|
}
|
||||||
@@ -860,7 +855,6 @@ public class PresentsClient
|
|||||||
synchronized (_subscrips) {
|
synchronized (_subscrips) {
|
||||||
// make a note of this new subscription
|
// make a note of this new subscription
|
||||||
_subscrips.put(dobj.getOid(), this);
|
_subscrips.put(dobj.getOid(), this);
|
||||||
_subhist.put(dobj.getOid(), "Mapped at " + new Date()); // TEMP
|
|
||||||
}
|
}
|
||||||
subscribedToObject(dobj);
|
subscribedToObject(dobj);
|
||||||
|
|
||||||
@@ -1010,7 +1004,6 @@ public class PresentsClient
|
|||||||
protected Connection _conn;
|
protected Connection _conn;
|
||||||
protected ClientObject _clobj;
|
protected ClientObject _clobj;
|
||||||
protected IntMap<ClientProxy> _subscrips = IntMaps.newHashIntMap();
|
protected IntMap<ClientProxy> _subscrips = IntMaps.newHashIntMap();
|
||||||
protected IntMap<String> _subhist = IntMaps.newHashIntMap(); // TEMP
|
|
||||||
protected ClassLoader _loader;
|
protected ClassLoader _loader;
|
||||||
|
|
||||||
/** The time at which this client started their session. */
|
/** The time at which this client started their session. */
|
||||||
|
|||||||
Reference in New Issue
Block a user