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 cec9833 commit c4a16feCopy full SHA for c4a16fe
lib/ConnectionPool.php
@@ -144,9 +144,11 @@ public function getReadyConnection() {
144
}
145
146
public function extractConnection() {
147
- return $this->getReadyConnection()->getThis()->onResolve(function($e, $conn) {
+ $promise = $this->getReadyConnection()->getThis();
148
+ $promise->onResolve(function($e, $conn) {
149
$this->unmapConnection(spl_object_hash($conn));
150
});
151
+ return $promise;
152
153
154
/* This method might be called multiple times with the same hash. Important is that it's unmapped immediately */
@@ -169,4 +171,4 @@ public function close() {
169
171
$this->readyMap = [];
170
172
$this->limit *= -1;
173
-}
174
+}
0 commit comments