Commit c75512ba authored by topjohnwu's avatar topjohnwu

Don't try to force reload if network drop

parent a22e7aa0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment