An additional check to help track down a bug where subscriptions aren't

being cleared properly.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6344 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2010-12-08 23:14:07 +00:00
parent e72a5d9a29
commit 7119d3e874
@@ -970,9 +970,15 @@ public class PresentsSession
if (postMessage(new ObjectResponse<DObject>(dobj))) {
_firstEventId = _omgr.getNextEventId(false);
object = dobj;
ClientProxy orec;
synchronized (_subscrips) {
// make a note of this new subscription
_subscrips.put(dobj.getOid(), this);
orec = _subscrips.put(dobj.getOid(), this);
}
if (orec != null) {
log.warning("Replacing existing subscription.", "oid", dobj.getOid(),
"client", PresentsSession.this);
orec.unsubscribe();
}
subscribedToObject(dobj);