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…
Reference in New Issue
Block a user