oh yeah... ant compile doesn't build the as sources... I wondered how I got this port right with no
errors on my first try. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4632 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -23,7 +23,7 @@ package com.threerings.presents.util {
|
|||||||
|
|
||||||
import com.threerings.presents.dobj.DObject;
|
import com.threerings.presents.dobj.DObject;
|
||||||
import com.threerings.presents.dobj.DObjectManager;
|
import com.threerings.presents.dobj.DObjectManager;
|
||||||
import com.threerings.presents.dobj.ObjectAccessException;
|
import com.threerings.presents.dobj.ObjectAccessError;
|
||||||
import com.threerings.presents.dobj.Subscriber;
|
import com.threerings.presents.dobj.Subscriber;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -34,7 +34,7 @@ import com.threerings.presents.dobj.Subscriber;
|
|||||||
*/
|
*/
|
||||||
public class SafeSubscriber implements Subscriber
|
public class SafeSubscriber implements Subscriber
|
||||||
{
|
{
|
||||||
private static const log :log = log.getlog(SafeSubscriber);
|
private static const log :Log = Log.getLog(SafeSubscriber);
|
||||||
/**
|
/**
|
||||||
* Creates a safe subscriber for the specified distributed object
|
* Creates a safe subscriber for the specified distributed object
|
||||||
* which will interact with the specified subscriber.
|
* which will interact with the specified subscriber.
|
||||||
@@ -118,7 +118,6 @@ public class SafeSubscriber implements Subscriber
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
log.warning("Inactive safesub asked to unsubscribe " + this + ".");
|
log.warning("Inactive safesub asked to unsubscribe " + this + ".");
|
||||||
Thread.dumpStack();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// note that we no longer desire to be subscribed
|
// note that we no longer desire to be subscribed
|
||||||
@@ -129,7 +128,6 @@ public class SafeSubscriber implements Subscriber
|
|||||||
if (_object != null) {
|
if (_object != null) {
|
||||||
log.warning("Incroyable! A safesub has an object and is " +
|
log.warning("Incroyable! A safesub has an object and is " +
|
||||||
"pending!? " + this + ".");
|
"pending!? " + this + ".");
|
||||||
Thread.dumpStack();
|
|
||||||
} else {
|
} else {
|
||||||
// nothing to do but wait for the subscription to complete
|
// nothing to do but wait for the subscription to complete
|
||||||
// at which point we'll pitch the object post-haste
|
// at which point we'll pitch the object post-haste
|
||||||
@@ -141,7 +139,6 @@ public class SafeSubscriber implements Subscriber
|
|||||||
if (_object == null) {
|
if (_object == null) {
|
||||||
log.warning("Zut alors! A safesub _was_ active and not " +
|
log.warning("Zut alors! A safesub _was_ active and not " +
|
||||||
"pending yet has no object!? " + this + ".");
|
"pending yet has no object!? " + this + ".");
|
||||||
Thread.dumpStack();
|
|
||||||
// nothing to do since we're apparently already unsubscribed
|
// nothing to do since we're apparently already unsubscribed
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -210,7 +207,7 @@ public class SafeSubscriber implements Subscriber
|
|||||||
/**
|
/**
|
||||||
* Returns a string representation of this instance.
|
* Returns a string representation of this instance.
|
||||||
*/
|
*/
|
||||||
public function toString () :void
|
public function toString () :String
|
||||||
{
|
{
|
||||||
return "[oid=" + _oid + ", active=" + _active + ", pending=" + _pending + ", ]";
|
return "[oid=" + _oid + ", active=" + _active + ", pending=" + _pending + ", ]";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user