mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 10:30:47 +00:00
Read in larger chunks
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user