We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9aa6bc0 + cea1493 commit 70247c5Copy full SHA for 70247c5
cloudinary-android/src/main/java/com/cloudinary/android/UploaderStrategy.java
@@ -115,6 +115,10 @@ public void totalBytesLoaded(long bytes) {
115
String responseData = readFully(responseStream);
116
connection.disconnect();
117
118
+ try {
119
+ responseStream.close();
120
+ } catch (Exception e) {}
121
+
122
if (code != 200 && code != 400 && code != 404 && code != 500) {
123
throw new RuntimeException("Server returned unexpected status code - " + code + " - " + responseData);
124
}
0 commit comments