Skip to content

Commit d88d269

Browse files
authored
Merge pull request #150 from mn7z/master
Check curl handle explicitly for resource type instead of null.
2 parents da7cd12 + 5be2dd9 commit d88d269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pusher.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private function create_curl($domain, $s_url, $request_method = 'GET', $query_pa
253253
$this->log('INFO: create_curl( '.$full_url.' )');
254254

255255
// Create or reuse existing curl handle
256-
if (null === $this->ch) {
256+
if (!is_resource($this->ch)) {
257257
$this->ch = curl_init();
258258
}
259259

0 commit comments

Comments
 (0)