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.} =