mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 13:35:27 +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();
|
ANResponse<JSONArray> res = req.build().executeForJSONArray();
|
||||||
// Network drop
|
// Network drop
|
||||||
if (res.getOkHttpResponse() == null)
|
if (res.getOkHttpResponse() == null)
|
||||||
return false;
|
return true;
|
||||||
// JSON not updated
|
// JSON not updated
|
||||||
if (res.getOkHttpResponse().code() == HttpURLConnection.HTTP_NOT_MODIFIED)
|
if (res.getOkHttpResponse().code() == HttpURLConnection.HTTP_NOT_MODIFIED)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user