mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 15:25:39 +00:00
Fix negative pending requests bug
This commit is contained in:
parent
82beb5da8c
commit
84dcf49079
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue