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