Skip to content

Commit

Permalink
Merge pull request #150 from mn7z/master
Browse files Browse the repository at this point in the history
Check curl handle explicitly for resource type instead of null.
  • Loading branch information
WillSewell authored Apr 23, 2018
2 parents da7cd12 + 5be2dd9 commit d88d269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pusher.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private function create_curl($domain, $s_url, $request_method = 'GET', $query_pa
$this->log('INFO: create_curl( '.$full_url.' )');

// Create or reuse existing curl handle
if (null === $this->ch) {
if (!is_resource($this->ch)) {
$this->ch = curl_init();
}

Expand Down

0 comments on commit d88d269

Please sign in to comment.