We use fast computers, let's give 'em 1000 loops.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2891 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-12-04 18:41:59 +00:00
parent 0cd11f034b
commit fcef745724
@@ -1,5 +1,5 @@
// //
// $Id: Invoker.java,v 1.12 2003/10/08 04:10:29 mdb Exp $ // $Id: Invoker.java,v 1.13 2003/12/04 18:41:59 mdb Exp $
package com.threerings.presents.util; package com.threerings.presents.util;
@@ -241,7 +241,7 @@ public class Invoker extends LoopingThread
protected boolean checkLoops () protected boolean checkLoops ()
{ {
if (_loopCount > MAX_LOOPS) { if (_loopCount > MAX_LOOPS) {
Log.warning("Shutdown Unit looped on one thread 100 times " + Log.warning("Shutdown Unit looped on one thread 1000 times " +
"without finishing, shutting down harshly."); "without finishing, shutting down harshly.");
doShutdown(); doShutdown();
return true; return true;
@@ -276,7 +276,7 @@ public class Invoker extends LoopingThread
protected static final int MAX_PASSES = 50; protected static final int MAX_PASSES = 50;
/** The maximum number of loops we allow before just ending things. */ /** The maximum number of loops we allow before just ending things. */
protected static final int MAX_LOOPS = 100; protected static final int MAX_LOOPS = 1000;
} }
/** The invoker's queue of units to be executed. */ /** The invoker's queue of units to be executed. */