From c75512ba6ec779033d995bbb9f6371b7b5624c89 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 9 Dec 2018 03:54:49 -0500 Subject: [PATCH] Don't try to force reload if network drop --- app/src/full/java/com/topjohnwu/magisk/asyncs/UpdateRepos.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/full/java/com/topjohnwu/magisk/asyncs/UpdateRepos.java b/app/src/full/java/com/topjohnwu/magisk/asyncs/UpdateRepos.java index 3566794f5..1f2bcce99 100644 --- a/app/src/full/java/com/topjohnwu/magisk/asyncs/UpdateRepos.java +++ b/app/src/full/java/com/topjohnwu/magisk/asyncs/UpdateRepos.java @@ -94,7 +94,7 @@ public class UpdateRepos { ANResponse res = req.build().executeForJSONArray(); // Network drop if (res.getOkHttpResponse() == null) - return false; + return true; // JSON not updated if (res.getOkHttpResponse().code() == HttpURLConnection.HTTP_NOT_MODIFIED) return false;