Skip to content

Commit

Permalink
Merge pull request #40071 from nextcloud/bugfix/noid/dont-block-admin…
Browse files Browse the repository at this point in the history
…-page-when-updater.nextcloud.com-is-down

fix(updatecheck): Don't wait 120s for a response of updater.nextcloud…
  • Loading branch information
blizzz authored Nov 22, 2023
2 parents 1cd4d4e + 053157b commit 99f9456
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/private/Updater/VersionCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ public function check() {
*/
protected function getUrlContent($url) {
$client = $this->clientService->newClient();
$response = $client->get($url);
$response = $client->get($url, [
'timeout' => 5,
]);
return $response->getBody();
}

Expand Down

0 comments on commit 99f9456

Please sign in to comment.