Skip to content

Commit

Permalink
fix curl on php 7 (macOS 10.13)
Browse files Browse the repository at this point in the history
  • Loading branch information
gharlan committed Sep 20, 2017
1 parent b11f547 commit 4802b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public function execute()
}
$callback = $request->callback;
$callback($response);
curl_close($ch);
curl_multi_remove_handle(self::$multiHandle, $ch);
curl_close($ch);
}
if ($running || !$finish) {
if (curl_multi_select(self::$multiHandle, 1) === -1) {
Expand Down

0 comments on commit 4802b43

Please sign in to comment.