Fix poll loop

This commit is contained in:
Ruslan Mustakov 2017-10-18 11:47:20 +07:00
commit 26570707aa

View file

@ -816,8 +816,8 @@ proc godot_nativescript_frame() {.cdecl, exportc, dynlib.} =
{.emit: """
setStackBottom((void*)(&`stackBottom`));
""".}
if asyncdispatch.hasPendingOperations():
for i in 1..10:
for _ in 1..10:
if asyncdispatch.hasPendingOperations():
poll(0)
GC_step(nimGcStepLengthUs, true, 0)