diff --git a/library/Requests.php b/library/Requests.php index 4f3d07b9c..7e8e855bc 100644 --- a/library/Requests.php +++ b/library/Requests.php @@ -426,6 +426,7 @@ public static function request_pool($requests, $options = array(), $pool_size = } } } + unset($request); if (!empty($options['transport'])) { @@ -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);