From 1d71c0f53f4b0d6cd1dfb302bc2f3cf03cc8b73d Mon Sep 17 00:00:00 2001 From: RadKesvat <> Date: Wed, 31 May 2023 16:23:16 +0430 Subject: [PATCH] fix the loop --- src/tunnel.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tunnel.nim b/src/tunnel.nim index 9d2fc31..7c99231 100644 --- a/src/tunnel.nim +++ b/src/tunnel.nim @@ -62,8 +62,9 @@ proc poolFrame() = ) var i = context.outbound.connections.len() - for i in 0..globals.pool_size: + while i.uint32 < globals.pool_size: create() + inc i proc processConnection(client: Connection) {.async.} =