Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Check if curl failed to get
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr committed Jul 1, 2012
1 parent dc87417 commit d815189
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/XmppPrebind.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,11 @@ protected function send($xml) {

$response = curl_exec($ch);

// Check if curl failed to get response
if ($response === false) {
throw new XmppPrebindConnectionException("Cannot connect to service");
}

curl_close($ch);

if ($this->useGzip) {
Expand Down

0 comments on commit d815189

Please sign in to comment.