Skip to content

Commit

Permalink
Fix connection null issue
Browse files Browse the repository at this point in the history
if the connection isn't found in the connections. don't add it to the ready list.
  • Loading branch information
shtse8 authored Oct 13, 2017
1 parent c4a16fe commit 0204d14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ConnectionPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ public function useExceptions($set) {

private function ready($hash) {
$conn = $this->connections[$this->connectionMap[$hash]];
if (!$conn) {
return;
}
if (list($deferred, $method, $args) = $this->virtualConnection->getCall()) {
$deferred->resolve(call_user_func_array([$conn, $method], $args));
} else {
Expand Down

0 comments on commit 0204d14

Please sign in to comment.