Fix in case of the website is unreachable
This commit is contained in:
parent
818efaa756
commit
0efa58f298
@ -118,6 +118,7 @@ class AsyncHttpRequest implements UsageInformationAble {
|
||||
$request->addListener('complete', function (Event $event) {
|
||||
$error = null;
|
||||
$content = null;
|
||||
$headers = null;
|
||||
if ($event->response->hasError()) {
|
||||
$error = $event->response->getError()->getMessage();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user