mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Fix progress being wrong for files < 1kb
This commit is contained in:
parent
aa62161b8f
commit
7f334c21e9
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ public class BrowserFileTransferOperation {
|
|||
var streamStartLength = inputStream.read(streamStart, 0, 1024);
|
||||
if (streamStartLength < 1024) {
|
||||
inputStream.close();
|
||||
inputStream = new ByteArrayInputStream(streamStart);
|
||||
inputStream = new ByteArrayInputStream(streamStart, 0, streamStartLength);
|
||||
} else {
|
||||
inputStream.reset();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue