Skip to content

Commit

Permalink
close response to avoid warning about leaked resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Strubbl committed Dec 7, 2016
1 parent 4915c1c commit cae8da3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ public static void downloadImageToCache(String imageURL, String destination, Lon
} else {
sink.writeAll(response.body().source());
sink.close();
response.close();
}
} catch (IOException e) {
e.printStackTrace();
Expand Down

0 comments on commit cae8da3

Please sign in to comment.