mirror of
https://github.com/danog/postgres.git
synced 2024-12-02 09:27:54 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
asyncCall(function () {
|
$producer = $this->producer;
|
||||||
|
asyncCall(static function () use ($producer) {
|
||||||
try {
|
try {
|
||||||
while (yield $this->producer->advance());
|
while (yield $producer->advance());
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
// Ignore iterator failure when destroying.
|
// Ignore iterator failure when destroying.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user