From d2b86a2b9416419db0ae21f46f378972c116d74d Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Tue, 17 Oct 2017 16:32:07 +0700 Subject: [PATCH] Perform poll(0) in a loop Temporary workaround for https://github.com/nim-lang/Nim/issues/6523 --- godot/nim/godotnim.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/godot/nim/godotnim.nim b/godot/nim/godotnim.nim index 078e6ab..dbee55f 100644 --- a/godot/nim/godotnim.nim +++ b/godot/nim/godotnim.nim @@ -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):