From 26570707aa7c79b260f70ac72dc706dc3c63d054 Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Wed, 18 Oct 2017 11:47:20 +0700 Subject: [PATCH] Fix poll loop --- godot/nim/godotnim.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/godot/nim/godotnim.nim b/godot/nim/godotnim.nim index dbee55f..0b0a765 100644 --- a/godot/nim/godotnim.nim +++ b/godot/nim/godotnim.nim @@ -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)