Skip to content

Commit 1de8592

Browse files
authored
Fix the cancellation of prefetched pagination results (#1476)
1 parent 8397fea commit 1de8592

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Core/src/Result.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public function __construct(Response $response, ?AbstractApi $awsClient = null,
4343

4444
public function __destruct()
4545
{
46-
while (!empty($this->prefetchResponses)) {
47-
array_shift($this->prefetchResponses)->cancel();
46+
while (!empty($this->prefetchResults)) {
47+
array_shift($this->prefetchResults)->cancel();
4848
}
4949
}
5050

0 commit comments

Comments
 (0)