Commit 64b9fed9 authored by tufengqi's avatar tufengqi

finish

parent 102037bb
......@@ -148,13 +148,8 @@ class SwoftHttpClient
public function closeCurlHandle()
{
try {
if ($this->curl_handle) {
curl_close($this->curl_handle);
$this->curl_handle = null;
}
} catch (\Exception $x) {
error_log('There was an error closing the curl handle: ' . $x->getMessage());
if ($this->handle) {
$this->handle = null;
}
}
......
......@@ -163,13 +163,8 @@ class SwooleHttpClient
public function closeCurlHandle()
{
try {
if ($this->curl_handle) {
curl_close($this->curl_handle);
$this->curl_handle = null;
}
} catch (\Exception $x) {
error_log('There was an error closing the curl handle: ' . $x->getMessage());
if ($this->handle) {
$this->handle = null;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment