am f6b4c24b: Fix bug with closing output stream for external downloads.
[android/platform/packages/providers/DownloadProvider.git] / src / com / android / providers / downloads / DownloadThread.java
index 431a19e..d79e026 100644 (file)
@@ -325,6 +325,7 @@ public class DownloadThread extends Thread {
             // close the file
             if (state.mStream != null) {
                 state.mStream.close();
+                state.mStream = null;
             }
         } catch (IOException ex) {
             if (Constants.LOGV) {