Send only read data during large file transfers
This commit is contained in:
parent
4cb127004f
commit
f186dbd0cb
|
@ -566,8 +566,8 @@ class AIRAService : Service() {
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
filesSender.nextChunk = if (read > 0) {
|
filesSender.nextChunk = if (read > 0) {
|
||||||
filesSender.lastChunkSizes.add(nextChunk.size)
|
filesSender.lastChunkSizes.add(read+1)
|
||||||
session.encrypt(nextChunk, usePadding)
|
session.encrypt(nextChunk.sliceArray(0 until read+1), usePadding)
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ buildscript {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
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"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue