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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user