This commit is contained in:
Simon MacDonald 2013-01-08 18:48:44 -05:00
commit c130396d4e

View File

@ -676,10 +676,11 @@ public class FileTransfer extends CordovaPlugin {
progress.setTotal(connection.getContentLength()); progress.setTotal(connection.getContentLength());
} }
FileOutputStream outputStream = new FileOutputStream(file); FileOutputStream outputStream = null;
InputStream inputStream = null; InputStream inputStream = null;
try { try {
outputStream = new FileOutputStream(file);
inputStream = getInputStream(connection); inputStream = getInputStream(connection);
synchronized (context) { synchronized (context) {
if (context.aborted) { if (context.aborted) {