Send only read data during large file transfers

master
Hardcore Sushi 2 years ago
parent 4cb127004f
commit f186dbd0cb
Signed by: hardcoresushi
GPG Key ID: 007F84120107191E

@ -566,8 +566,8 @@ class AIRAService : Service() {
0
}
filesSender.nextChunk = if (read > 0) {
filesSender.lastChunkSizes.add(nextChunk.size)
session.encrypt(nextChunk, usePadding)
filesSender.lastChunkSizes.add(read+1)
session.encrypt(nextChunk.sliceArray(0 until read+1), usePadding)
} else {
null
}

@ -5,7 +5,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

Loading…
Cancel
Save