mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-24 00:56:42 +00:00
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:
@@ -48,8 +48,9 @@ public class Limelight implements NvConnectionListener {
|
|||||||
try {
|
try {
|
||||||
fos = new FileOutputStream(destination);
|
fos = new FileOutputStream(destination);
|
||||||
int read;
|
int read;
|
||||||
while ((read = resource.read()) != -1) {
|
byte[] readBuffer = new byte[16384];
|
||||||
fos.write(read);
|
while ((read = resource.read(readBuffer)) != -1) {
|
||||||
|
fos.write(readBuffer, 0, read);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (fos != null) {
|
if (fos != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user