Skip to content

Commit 24e6821

Browse files
committed
add status callback for empty file
1 parent b5999e6 commit 24e6821

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

zboxcore/sdk/downloadworker.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,10 @@ func (req *DownloadRequest) processDownload() {
449449
return
450450
}
451451
req.fileHandler.Sync() //nolint
452+
if req.statusCallback != nil && !req.skip {
453+
req.statusCallback.Completed(
454+
req.allocationID, remotePathCB, fRef.Name, fRef.MimeType, 32, op)
455+
}
452456
return
453457
}
454458
size, chunksPerShard, blocksPerShard := req.size, req.chunksPerShard, req.blocksPerShard

0 commit comments

Comments
 (0)