mirror of
https://github.com/samsonjs/media.git
synced 2026-04-15 12:55:46 +00:00
Always null inputStream, even if closing it failed.
This commit is contained in:
parent
cd83bbb740
commit
508e1cabe1
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue