Improve detection and handling of orphaned coroutine threads.

This commit is contained in:
James Roseborough
2012-01-25 03:46:53 +00:00
parent f283aae6a8
commit 9922cbb3db

View File

@@ -339,9 +339,9 @@ public class LuaThread extends LuaValue {
* @see DebugLib * @see DebugLib
*/ */
public final void onReturn() { public final void onReturn() {
functions[--calls] = null;
if (DebugLib.DEBUG_ENABLED) if (DebugLib.DEBUG_ENABLED)
DebugLib.debugOnReturn(running_thread, calls); DebugLib.debugOnReturn(running_thread, calls);
functions[--calls] = null;
} }
/** /**