mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-28 14:37:39 +00:00
Don't try to force reload if network drop
This commit is contained in:
parent
a22e7aa0b1
commit
c75512ba6e
@ -94,7 +94,7 @@ public class UpdateRepos {
|
||||
ANResponse<JSONArray> 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user