Browse Source

sentinel should tick a soon as we kick the main loop

ncannasse 7 years ago
parent
commit
9f201f4104
1 changed files with 1 additions and 0 deletions
  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
 	}