Commit 508e1cab by Oliver Woodman

Always null inputStream, even if closing it failed.

parent cd83bbb7
...@@ -270,7 +270,6 @@ public class DefaultHttpDataSource implements HttpDataSource { ...@@ -270,7 +270,6 @@ public class DefaultHttpDataSource implements HttpDataSource {
} catch (IOException e) { } catch (IOException e) {
throw new HttpDataSourceException(e, dataSpec); throw new HttpDataSourceException(e, dataSpec);
} }
inputStream = null;
} }
} finally { } finally {
if (opened) { if (opened) {
...@@ -278,6 +277,7 @@ public class DefaultHttpDataSource implements HttpDataSource { ...@@ -278,6 +277,7 @@ public class DefaultHttpDataSource implements HttpDataSource {
if (listener != null) { if (listener != null) {
listener.onTransferEnd(); listener.onTransferEnd();
} }
inputStream = null;
closeConnection(); closeConnection();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment