mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 18:35:45 +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.} =
|
proc getGuestAccount*(api: Api): Future[GuestAccount] {.async.} =
|
||||||
for i in 0 ..< accountPool.len:
|
for i in 0 ..< accountPool.len:
|
||||||
if result.isReady(api): break
|
if result.isReady(api): break
|
||||||
release(result)
|
|
||||||
result = accountPool.sample()
|
result = accountPool.sample()
|
||||||
|
|
||||||
if not result.isNil and result.isReady(api):
|
if not result.isNil and result.isReady(api):
|
||||||
|
|
Loading…
Reference in a new issue