Skip to content

Commit ab53b87

Browse files
committed
Bug Fixes: Retry
1 parent 51cf1fe commit ab53b87

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/controller.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ export async function controller<T extends { maxRetry?: number }, V, C>(
4747
)
4848

4949
crawlQueue = crawlQueue.filter(
50-
(config) => !config.isSuccess && config.retryCount <= config.maxRetry
50+
(config) =>
51+
config.maxRetry &&
52+
!config.isSuccess &&
53+
config.retryCount < config.maxRetry
5154
)
5255
}
5356

0 commit comments

Comments
 (0)