mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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) {
|
} 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 {
|
||||||
if (listener != null) {
|
if (listener != null) {
|
||||||
listener.onTransferEnd();
|
listener.onTransferEnd();
|
||||||
}
|
}
|
||||||
|
inputStream = null;
|
||||||
closeConnection();
|
closeConnection();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue