Explorar o código

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

Rudy Ges %!s(int64=2) %!d(string=hai) anos
pai
achega
5a51513355
Modificáronse 1 ficheiros con 2 adicións e 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();
 		}
 	}
 }