Skip to content

Commit

Permalink
Merge pull request #348 from nextcloud/capabilities_timeout
Browse files Browse the repository at this point in the history
Have the capabilities properly timeout
  • Loading branch information
rullzer authored Jan 9, 2019
2 parents 53b6fa1 + 97df951 commit a48b0e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@ private function getCollaboraCapabilities() {

$client = $this->clientService->newClient();
try {
$response = $client->get($capabilitiesEndpoint);
$response = $client->get(
$capabilitiesEndpoint,
[
'timeout' => 5,
]
);
} catch (\Exception $e) {
return [];
}
Expand Down

0 comments on commit a48b0e8

Please sign in to comment.