浏览代码

sentinel should tick a soon as we kick the main loop

ncannasse 7 年之前
父节点
当前提交
9f201f4104
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hxd/System.hl.hx

+ 1 - 0
hxd/System.hl.hx

@@ -301,6 +301,7 @@ class System {
 		#if !usesys
 		hl.Api.setErrorHandler(function(e) reportError(e)); // initialization error
 		sentinel = new hl.UI.Sentinel(30, function() throw "Program timeout (infinite loop?)");
+		haxe.MainLoop.add(timeoutTick);
 		#end
 	}