Fix negative pending requests bug

This commit is contained in:
Zed 2023-08-31 05:06:47 +02:00
parent 82beb5da8c
commit 84dcf49079
1 changed files with 0 additions and 1 deletions

View File

@ -116,7 +116,6 @@ proc release*(account: GuestAccount) =
proc getGuestAccount*(api: Api): Future[GuestAccount] {.async.} =
for i in 0 ..< accountPool.len:
if result.isReady(api): break
release(result)
result = accountPool.sample()
if not result.isNil and result.isReady(api):