Skip to content

Commit

Permalink
fix(updatecheck): Don't wait 120s for a response of updater.nextcloud…
Browse files Browse the repository at this point in the history
….com

Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen authored and blizzz committed Nov 22, 2023
1 parent bc1da2f commit 053157b
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 053157b

Please sign in to comment.