Commit 64b9fed9 authored by tufengqi's avatar tufengqi

finish

parent 102037bb
...@@ -148,13 +148,8 @@ class SwoftHttpClient ...@@ -148,13 +148,8 @@ class SwoftHttpClient
public function closeCurlHandle() public function closeCurlHandle()
{ {
try { if ($this->handle) {
if ($this->curl_handle) { $this->handle = null;
curl_close($this->curl_handle);
$this->curl_handle = null;
}
} catch (\Exception $x) {
error_log('There was an error closing the curl handle: ' . $x->getMessage());
} }
} }
......
...@@ -163,13 +163,8 @@ class SwooleHttpClient ...@@ -163,13 +163,8 @@ class SwooleHttpClient
public function closeCurlHandle() public function closeCurlHandle()
{ {
try { if ($this->handle) {
if ($this->curl_handle) { $this->handle = null;
curl_close($this->curl_handle);
$this->curl_handle = null;
}
} catch (\Exception $x) {
error_log('There was an error closing the curl handle: ' . $x->getMessage());
} }
} }
......
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