Explorar el Código

[eval] Fix MainLoop.add not repeating (#11202)

Rudy Ges hace 2 años
padre
commit
53789c6583
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  1. 2 5
      std/eval/_std/sys/thread/EventLoop.hx

+ 2 - 5
std/eval/_std/sys/thread/EventLoop.hx

@@ -196,11 +196,8 @@ class EventLoop {
 
 		if (started && isMainThread) {
 			var next = @:privateAccess MainLoop.tick();
-			if (haxe.MainLoop.hasEvents()) {
-				wakeup.send();
-			} else {
-				refUnref();
-			}
+			if (haxe.MainLoop.hasEvents()) wakeup.send();
+			refUnref();
 		}
 	}
 }