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: """ {.emit: """
setStackBottom((void*)(&`stackBottom`)); setStackBottom((void*)(&`stackBottom`));
""".} """.}
if asyncdispatch.hasPendingOperations(): for _ in 1..10:
for i in 1..10: if asyncdispatch.hasPendingOperations():
poll(0) poll(0)
GC_step(nimGcStepLengthUs, true, 0) GC_step(nimGcStepLengthUs, true, 0)