mirror of
https://github.com/danog/postgres.git
synced 2024-11-29 20:19:10 +01:00
Remove circular reference in destructor
This commit is contained in:
parent
d5f70b2f4f
commit
1e1155d73d
@ -52,9 +52,10 @@ final class PqUnbufferedResultSet implements ResultSet
|
||||
return;
|
||||
}
|
||||
|
||||
asyncCall(function () {
|
||||
$producer = $this->producer;
|
||||
asyncCall(static function () use ($producer) {
|
||||
try {
|
||||
while (yield $this->producer->advance());
|
||||
while (yield $producer->advance());
|
||||
} catch (\Throwable $exception) {
|
||||
// Ignore iterator failure when destroying.
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user