Skip to content

Commit 3b510b3

Browse files
committed
Prevent detecting infinite loops with async
1 parent 74c91cd commit 3b510b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Paginator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function __construct(Connector $connector, Request $request)
104104
$this->totalResults += count($pageItems);
105105
})
106106
->onResponse(function (Response $response): void {
107-
if ($this->detectInfiniteLoop === false) {
107+
if ($this->detectInfiniteLoop === false || $this->isAsyncPaginationEnabled() === true) {
108108
return;
109109
}
110110

0 commit comments

Comments
 (0)