diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-10-02 17:37:50 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-10-02 17:37:50 -0700 |
commit | 04f146f4eaedc38d32c8f54b16c68c237abb7b31 (patch) | |
tree | a9284ca25c2614271337b24434f734cb04b2377d /src/github | |
parent | d1e64c23249d41ac011cce6cebb61cd2590d0e00 (diff) | |
download | dsub-04f146f4eaedc38d32c8f54b16c68c237abb7b31.tar.gz dsub-04f146f4eaedc38d32c8f54b16c68c237abb7b31.tar.bz2 dsub-04f146f4eaedc38d32c8f54b16c68c237abb7b31.zip |
Fix web commit
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/service/StreamProxy.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/service/StreamProxy.java b/src/github/daneren2005/dsub/service/StreamProxy.java index 287cb475..78aa7f56 100644 --- a/src/github/daneren2005/dsub/service/StreamProxy.java +++ b/src/github/daneren2005/dsub/service/StreamProxy.java @@ -128,9 +128,9 @@ public class StreamProxy implements Runnable { // Get all of the headers
try {
String line;
- while(line = reader.readLine() && !"".equals(line)) {
+ while((line = reader.readLine()) != null && !"".equals(line)) {
String headerName = line.substring(0, line.indexOf(':'));
- String headerValue = line.substring(line.indexOf(': ') + 2);
+ String headerValue = line.substring(line.indexOf(": ") + 2);
request.addHeader(headerName, headerValue);
}
} catch(IOException e) {
@@ -160,7 +160,7 @@ public class StreamProxy implements Runnable { Log.i(TAG, "Processing request for file " + localPath);
downloadFile = downloadService.getCurrentPlaying();
File partialFile = new File(localPath);
- if (!file.equals(downloadFile.getPartialFile()) {
+ if (!partialFile.equals(downloadFile.getPartialFile())) {
Log.e(TAG, "File " + localPath + " does not exist");
return false;
}
|