diff --git a/src/java/com/threerings/presents/server/PresentsDObjectMgr.java b/src/java/com/threerings/presents/server/PresentsDObjectMgr.java index 3393f9277..560e642b9 100644 --- a/src/java/com/threerings/presents/server/PresentsDObjectMgr.java +++ b/src/java/com/threerings/presents/server/PresentsDObjectMgr.java @@ -281,29 +281,18 @@ public class PresentsDObjectMgr // from interface RootDObjectManager public Interval newInterval (final Runnable action) { - return new Interval() { - @Override - public void expired () { - if (isRunning()) { - postRunnable(new Runnable() { - public void run () { - // if we were canceled between the time that we posted this runnable - // and the time the dobjmgr got around to executing us, we opt not to - // actually execute our runnable because that's how Interval does it - if (_task != null) { - action.run(); - } - } - }); - } else { - cancel(); - } + return new Interval(this) { + @Override public void expired () { + action.run(); } - @Override - public String toString() { + @Override public String toString () { return "DObjectManagerInterval(" + action + ")"; } + + @Override protected void noteRejected () { + // don't complain + } }; }