Don't truncate fc, receivedByteCount is unreliable
This commit is contained in:
1 parent
2d5a2022b4
commit
cf8097babc
1 file changed
+1
-1
@@ -145,7 +145,7 @@ class SpiderDen(mGalleryInfo: GalleryInfo) {
|
||||
val chan = os.channel
|
||||
copyToChannel(chan) {
|
||||
notifyProgress(length, info.receivedByteCount, it)
|
||||
}.also { size -> if (chan.size() != size) chan.truncate(size) }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user