File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Parse/src/main/java/com/parse Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,10 @@ public Void call() throws Exception {
54
54
long totalSize = response .getTotalSize ();
55
55
long downloadedSize = 0 ;
56
56
InputStream responseStream = null ;
57
+ FileOutputStream tempFileStream = null ;
57
58
try {
58
59
responseStream = response .getContent ();
59
- FileOutputStream tempFileStream = ParseFileUtils .openOutputStream (tempFile );
60
+ tempFileStream = ParseFileUtils .openOutputStream (tempFile );
60
61
61
62
int nRead ;
62
63
byte [] data = new byte [32 << 10 ]; // 32KB
@@ -73,6 +74,7 @@ public Void call() throws Exception {
73
74
return null ;
74
75
} finally {
75
76
ParseIOUtils .closeQuietly (responseStream );
77
+ ParseIOUtils .closeQuietly (tempFileStream );
76
78
}
77
79
}
78
80
}, ParseExecutors .io ());
You can’t perform that action at this time.
0 commit comments