If there is no internet connection don't try to contact appstore

Fixes #7119

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-11-09 10:55:19 +01:00
parent 059be95d6c
commit 2eb2b6e437
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 2 additions and 1 deletions

View File

@ -128,8 +128,9 @@ abstract class Fetcher {
*/
public function get() {
$appstoreenabled = $this->config->getSystemValue('appstoreenabled', true);
$internetavailable = $this->config->getSystemValue('has_internet_connection', true);
if (!$appstoreenabled) {
if (!$appstoreenabled || !$internetavailable) {
return [];
}