isEmpty() -> getPendingUnits() == 0.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5919 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2009-08-18 23:39:34 +00:00
parent 00416168bb
commit cc5a87d18d
@@ -109,7 +109,7 @@ public class PresentsInvoker extends ReportingInvoker
return false;
// if the invoker queue is not empty, we put ourselves back on it
} else if (!isEmpty()) {
} else if (getPendingUnits() > 0) {
_loopCount++;
postUnit(this);
return false;
@@ -246,7 +246,7 @@ public class PresentsInvoker extends ReportingInvoker
public boolean isEmpty ()
{
return _invoker == null ? _omgr.queueIsEmpty() : _invoker.isEmpty();
return _invoker == null ? _omgr.queueIsEmpty() : (_invoker.getPendingUnits() == 0);
}
public void post (Runnable runnable)