summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2013-07-07 00:55:05 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2013-07-07 00:55:05 +0200
commit941fa9062e2ac1709e8c99208e2f63226fe2c7a8 (patch)
tree80d2162d3075c8a7033cf5abc2b2512b530be7b7 /src/de/danoeh/antennapod
parent20b267a909b7483aecd85be71fb4f18a2001074e (diff)
parent07e64d8deddad56f763b32ddac17333f3229420a (diff)
downloadAntennaPod-941fa9062e2ac1709e8c99208e2f63226fe2c7a8.zip
Merge branch 'buffered-output-stream-flush' of git://github.com/andrewgaul/AntennaPod into andrewgaul-buffered-output-stream-flush
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit. # # It looks like you may be committing a merge. # If this is not correct, please remove the file # .git/MERGE_HEAD # and try again. # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # On branch andrewgaul-buffered-output-stream-flush # All conflicts fixed but you are still merging. # (use "git commit" to conclude merge) # # Changes to be committed: # # modified: src/de/danoeh/antennapod/service/download/HttpDownloader.java # modified: tests/src/de/danoeh/antennapod/test/FeedHandlerTest.java # # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # (commit or discard the untracked or modified content in submodules) # # modified: submodules/ActionBarSherlock (modified content, untracked content) # modified: submodules/ViewPagerIndicator (modified content, untracked content) # modified: submodules/dslv (modified content, untracked content) #
Diffstat (limited to 'src/de/danoeh/antennapod')
-rw-r--r--src/de/danoeh/antennapod/service/download/HttpDownloader.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/de/danoeh/antennapod/service/download/HttpDownloader.java b/src/de/danoeh/antennapod/service/download/HttpDownloader.java
index 2310a4a09..0cb89368d 100644
--- a/src/de/danoeh/antennapod/service/download/HttpDownloader.java
+++ b/src/de/danoeh/antennapod/service/download/HttpDownloader.java
@@ -63,7 +63,7 @@ public class HttpDownloader extends Downloader {
@Override
protected void download() {
DefaultHttpClient httpClient = null;
- OutputStream out = null;
+ BufferedOutputStream out = null;
InputStream connection = null;
try {
HttpGet httpGet = new HttpGet(status.getFeedFile()
@@ -113,6 +113,7 @@ public class HttpDownloader extends Downloader {
if (cancelled) {
onCancelled();
} else {
+ out.flush();
onSuccess();
}
} else {