2
0
Эх сурвалжийг харах

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

Rudy Ges 2 жил өмнө
parent
commit
5a51513355

+ 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();
 		}
 	}
 }