Skip to content

Commit

Permalink
fix-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kis Attila Balint committed Jun 29, 2021
1 parent 54e4921 commit f7e8cda
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions library/Requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ public static function request_pool($requests, $options = array(), $pool_size =
}
}
}

unset($request);

if (!empty($options['transport'])) {
Expand All @@ -437,10 +438,10 @@ public static function request_pool($requests, $options = array(), $pool_size =
}
else {
$transport = self::get_transport();
}

if (get_class($transport) !== 'Requests_Transport_cURL') {
return array();
if (get_class($transport) !== 'Requests_Transport_cURL') {
return array();
}
}

$responses = $transport->request_pool($requests, $options, $pool_size);
Expand Down

0 comments on commit f7e8cda

Please sign in to comment.