diff --git a/app/src/main/java/acr/browser/lightning/object/SearchAdapter.java b/app/src/main/java/acr/browser/lightning/object/SearchAdapter.java index 841f450..9a185b9 100644 --- a/app/src/main/java/acr/browser/lightning/object/SearchAdapter.java +++ b/app/src/main/java/acr/browser/lightning/object/SearchAdapter.java @@ -400,6 +400,7 @@ public class SearchAdapter extends BaseAdapter implements Filterable { if (connection.getResponseCode() >= HttpURLConnection.HTTP_MULT_CHOICE || connection.getResponseCode() < HttpURLConnection.HTTP_OK) { Log.e(TAG, "Search API Responded with code: " + connection.getResponseCode()); + connection.disconnect(); return cacheFile; } in = connection.getInputStream();