优化Partial Content缓存

This commit is contained in:
刘祥超
2022-11-19 21:20:53 +08:00
parent 7a4b89d2fb
commit afc8f7b703
9 changed files with 69 additions and 40 deletions

View File

@@ -152,6 +152,8 @@ func (this *PartialFileWriter) Close() error {
err := this.ranges.WriteToFile(this.rangePath)
if err != nil {
_ = this.rawWriter.Close()
this.remove()
return err
}