We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a59e06a commit 294ad69Copy full SHA for 294ad69
lib/AbstractPool.php
@@ -134,12 +134,15 @@ private function pop(): \Generator {
134
++$this->pending;
135
try {
136
$this->promise = $this->createConnection();
137
- $this->addConnection(yield $this->promise);
+ $connection = yield $this->promise;
138
} finally {
139
if (--$this->pending === 0) {
140
$this->promise = null;
141
}
142
143
+
144
+ $this->connections->attach($connection);
145
+ return $connection;
146
147
148
0 commit comments