Fix leftover bytes in cached content index file
Extra calls to CipherOutputStream.close() causes each time extra 16 bytes written to the underlying OutputStream. Prevented close() is called more than once and also discarded any data in ReusableBufferedOutputStream buffer on reset(). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=144063120
Showing
with
11 additions
and
1 deletions
Please
register
or
sign in
to comment