浏览代码

Fix to start timer thread when there is a memory limit but no time limit.

Simon Best 12 年之前
父节点
当前提交
ef8620f0c2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      v8js.cc

+ 1 - 1
v8js.cc

@@ -776,7 +776,7 @@ static PHP_METHOD(V8Js, executeString)
 	/* Set flags for runtime use */
 	V8JS_GLOBAL_SET_FLAGS(flags);
 
-	if (time_limit > 0) {
+	if (time_limit > 0 || memory_limit > 0) {
 		// If timer thread is not running then start it
 		if (!V8JSG(timer_thread)) {
 			// If not, start timer thread