diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 48b6ae5..e9e2a78 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -121,7 +121,9 @@ public function verbose($on=TRUE) { } public function close() { - curl_close($this->curl); + if (is_resource($this->curl)) { + curl_close($this->curl); + } } public function _exec() {