Skip to content

Commit 0204d14

Browse files
authored
Fix connection null issue
if the connection isn't found in the connections. don't add it to the ready list.
1 parent c4a16fe commit 0204d14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ConnectionPool.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ public function useExceptions($set) {
112112

113113
private function ready($hash) {
114114
$conn = $this->connections[$this->connectionMap[$hash]];
115+
if (!$conn) {
116+
return;
117+
}
115118
if (list($deferred, $method, $args) = $this->virtualConnection->getCall()) {
116119
$deferred->resolve(call_user_func_array([$conn, $method], $args));
117120
} else {

0 commit comments

Comments
 (0)