From 3fcb897e7a303bca81c7d9a65148996db4976dea Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 22 Jan 2024 18:02:15 -0500 Subject: [PATCH] fix: need to borrow the check from finishUploadIfComplete and invert it --- storage/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/storage.go b/storage/storage.go index f5ab816..f258b2a 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -360,7 +360,7 @@ func (s *StorageServiceImpl) tusWorker() { } case info := <-s.tus.CompleteUploads: - if !info.Upload.IsFinal { + if !(!info.Upload.SizeIsDeferred && info.Upload.Offset == info.Upload.Size) { continue } err := s.TusUploadCompleted(info.Upload.ID)