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 <[email protected]>
  • Loading branch information
nickvergessen committed Aug 28, 2023
1 parent ce9e0ae commit caf4096
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 @@ -123,7 +123,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 caf4096

Please sign in to comment.