filer: fix hanging on read

This commit is contained in:
Chris Lu 2020-10-10 16:02:10 -07:00
parent cff8bb6554
commit 70af0ec24c

View file

@ -34,7 +34,7 @@ func StreamContent(masterClient *wdclient.MasterClient, w io.Writer, chunks []*f
urlStrings := fileId2Url[chunkView.FileId]
data, err := retriedFetchChunkData(urlStrings, chunkView.CipherKey, chunkView.IsGzipped, chunkView.IsFullChunk(), chunkView.Offset, int(chunkView.Size))
if err == nil {
if err != nil {
return err
}
w.Write(data)