diff --git a/lib/WebDriver/Service/CurlService.php b/lib/WebDriver/Service/CurlService.php index 254b8e00..9cfdbbff 100755 --- a/lib/WebDriver/Service/CurlService.php +++ b/lib/WebDriver/Service/CurlService.php @@ -114,8 +114,6 @@ public function execute($requestMethod, $url, $parameters = null, $extraOptions CURLE_GOT_NOTHING !== ($errno = curl_errno($curl)) && $error = curl_error($curl) ) { - curl_close($curl); - $e = new CurlExecException( sprintf( "Curl error thrown for http %s to %s%s\n\n%s", @@ -132,8 +130,6 @@ public function execute($requestMethod, $url, $parameters = null, $extraOptions throw $e; } - curl_close($curl); - return array($rawResult, $info); } }