Skip to content

Commit

Permalink
Fix curl_multi_exec deprecated functionality error (close #121)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscwilson committed Dec 21, 2022
1 parent bd9e60a commit 73a75f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ function execute($curls, $rolling_window) {
}

// Execute the rolling curl
$running = 0;
do {
$execrun = curl_multi_exec($master, $running);
while ($execrun == CURLM_CALL_MULTI_PERFORM);
Expand Down
1 change: 1 addition & 0 deletions src/Emitters/CurlEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ private function rollingCurl($curls, $debug) {
}

// Execute the rolling curl
$running = 0;
do {
do {
$execrun = curl_multi_exec($master, $running);
Expand Down

0 comments on commit 73a75f3

Please sign in to comment.