Skip to content

Commit

Permalink
Update Client.php
Browse files Browse the repository at this point in the history
Clear $this->ch on shutdown, so it's empty for subsequently create(), which would otherwise try to close an already closed curl handle.
  • Loading branch information
wsd-msp authored Nov 13, 2018
1 parent 1c3d945 commit 2b4e1ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Economic/API/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public function shutdown()
{
if (!empty($this->ch)) {
curl_close($this->ch);
$this->ch = null;
}
}

Expand Down

0 comments on commit 2b4e1ed

Please sign in to comment.