Skip to content

Commit

Permalink
Merge pull request #3 from igoratron/master
Browse files Browse the repository at this point in the history
StreamProxy fix for KitKat
  • Loading branch information
987poiuytrewq committed Apr 24, 2014
2 parents 9e20e19 + a5ae49d commit 9ce6703
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="fm.last.android" android:versionCode="62" android:versionName="1.9.9.1">
package="fm.last.android" android:versionCode="63" android:versionName="1.9.9.2">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
4 changes: 2 additions & 2 deletions app/src/fm/last/android/player/StreamProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private HttpRequest readRequest(Socket client) {
if(line != null && line.toLowerCase().startsWith("user-agent: ")) {
ua = line.substring(12);
}
} while(line != null && reader.ready());
} while(line != null && !"".equals(line) && reader.ready());
} catch (IOException e) {
Log.e(LOG_TAG, "Error parsing request", e);
return request;
Expand Down Expand Up @@ -373,4 +373,4 @@ protected ClientConnectionOperator createConnectionOperator(
}
}

}
}

1 comment on commit 9ce6703

@jensz12
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update this App, it keeps crashing on 4.4 and newer :-)

Please sign in to comment.