Skip to content

Commit

Permalink
Close Curl sockets properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Dec 11, 2023
1 parent 011de98 commit daf988b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbraFlexi/RO.php
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ public static function xml2array($xml)
*/
public function disconnect()
{
if (is_resource($this->curl)) {
if (is_null($this->curl) === false) {
curl_close($this->curl);
}
$this->curl = null;
Expand Down

0 comments on commit daf988b

Please sign in to comment.