Don't truncate fc, receivedByteCount is unreliable

This commit is contained in:
tarsin committed 2023-07-28 16:54:46 +08:00
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) }
}
}
}
}