Loading media/java/android/media/MediaHTTPConnection.java +8 −3 Original line number Diff line number Diff line Loading @@ -135,7 +135,13 @@ public class MediaHTTPConnection extends IMediaHTTPConnection.Stub { private void teardownConnection() { if (mConnection != null) { if (mInputStream != null) { try { mInputStream.close(); } catch (IOException e) { } mInputStream = null; } mConnection.disconnect(); mConnection = null; Loading Loading @@ -297,8 +303,7 @@ public class MediaHTTPConnection extends IMediaHTTPConnection.Stub { mCurrentOffset = offset; } catch (IOException e) { mTotalSize = -1; mInputStream = null; mConnection = null; teardownConnection(); mCurrentOffset = -1; throw e; Loading Loading
media/java/android/media/MediaHTTPConnection.java +8 −3 Original line number Diff line number Diff line Loading @@ -135,7 +135,13 @@ public class MediaHTTPConnection extends IMediaHTTPConnection.Stub { private void teardownConnection() { if (mConnection != null) { if (mInputStream != null) { try { mInputStream.close(); } catch (IOException e) { } mInputStream = null; } mConnection.disconnect(); mConnection = null; Loading Loading @@ -297,8 +303,7 @@ public class MediaHTTPConnection extends IMediaHTTPConnection.Stub { mCurrentOffset = offset; } catch (IOException e) { mTotalSize = -1; mInputStream = null; mConnection = null; teardownConnection(); mCurrentOffset = -1; throw e; Loading