fix: need to borrow the check from finishUploadIfComplete and invert it
This commit is contained in:
parent
941ce27293
commit
3fcb897e7a
|
@ -360,7 +360,7 @@ func (s *StorageServiceImpl) tusWorker() {
|
||||||
}
|
}
|
||||||
|
|
||||||
case info := <-s.tus.CompleteUploads:
|
case info := <-s.tus.CompleteUploads:
|
||||||
if !info.Upload.IsFinal {
|
if !(!info.Upload.SizeIsDeferred && info.Upload.Offset == info.Upload.Size) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
err := s.TusUploadCompleted(info.Upload.ID)
|
err := s.TusUploadCompleted(info.Upload.ID)
|
||||||
|
|
Loading…
Reference in New Issue