Commit 508e1cab by Oliver Woodman

Always null inputStream, even if closing it failed.

parent cd83bbb7
......@@ -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();
}
}
......
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