Merge branch 'master' of github.com:limelight-stream/limelight-pc

# By Cameron Gutman
# Via Cameron Gutman
* 'master' of github.com:limelight-stream/limelight-pc:
  Update limelight-common jar
  Read in larger chunks
This commit is contained in:
Diego Waxemberg
2013-12-20 16:55:37 -05:00

View File

@@ -48,8 +48,9 @@ public class Limelight implements NvConnectionListener {
try {
fos = new FileOutputStream(destination);
int read;
while ((read = resource.read()) != -1) {
fos.write(read);
byte[] readBuffer = new byte[16384];
while ((read = resource.read(readBuffer)) != -1) {
fos.write(readBuffer, 0, read);
}
} finally {
if (fos != null) {