aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-03-14 19:01:19 -0700
committerScott Jackson <daneren2005@gmail.com>2013-03-14 19:01:19 -0700
commit0f36cd43d5e5ad53925d772fa15687c39a2156c1 (patch)
treed86a347922662e3fe2333f574616b8b73f7ad5fa /subsonic-android
parent44391bcbb50c551f75f0ea1d73d240599b46cf72 (diff)
downloaddsub-0f36cd43d5e5ad53925d772fa15687c39a2156c1.tar.gz
dsub-0f36cd43d5e5ad53925d772fa15687c39a2156c1.tar.bz2
dsub-0f36cd43d5e5ad53925d772fa15687c39a2156c1.zip
Add a check to make sure that 100% of the file is sent before closing connection
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/StreamProxy.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/StreamProxy.java b/subsonic-android/src/github/daneren2005/dsub/service/StreamProxy.java
index 88815706..1b422d5a 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/StreamProxy.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/StreamProxy.java
@@ -206,7 +206,7 @@ public class StreamProxy implements Runnable {
}
// Done regardless of whether or not it thinks it is
- if(downloadFile.isWorkDone()) {
+ if(downloadFile.isWorkDone() && cbSkip >= file.length()) {
break;
}