Skip to content

Commit d2979e2

Browse files
committed
Reset page construction attempts on each start
1 parent 18a9331 commit d2979e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/instagram.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ export class Instagram<PostType> {
302302
*/
303303
public async start() {
304304
let pageConstructed: boolean;
305+
this.pageUrlAttempts = 0;
305306
while (this.pageUrlAttempts++ < this.maxPageUrlAttempts) {
306307
pageConstructed = await this.constructPage();
307308
if (pageConstructed) {

0 commit comments

Comments
 (0)