Always null inputStream, even if closing it failed.

This commit is contained in:
Oliver Woodman 2015-07-21 09:57:51 +01:00
parent cd83bbb740
commit 508e1cabe1

View file

@ -270,7 +270,6 @@ public class DefaultHttpDataSource implements HttpDataSource {
} catch (IOException e) {
throw new HttpDataSourceException(e, dataSpec);
}
inputStream = null;
}
} finally {
if (opened) {
@ -278,6 +277,7 @@ public class DefaultHttpDataSource implements HttpDataSource {
if (listener != null) {
listener.onTransferEnd();
}
inputStream = null;
closeConnection();
}
}