Perform poll(0) in a loop

Temporary workaround for https://github.com/nim-lang/Nim/issues/6523
This commit is contained in:
Ruslan Mustakov 2017-10-17 16:32:07 +07:00
commit d2b86a2b94

View file

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