Fix poll loop
This commit is contained in:
parent
d2b86a2b94
commit
26570707aa
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue