fix logic else brake

This commit is contained in:
Konstantin Lebedev 2022-07-26 11:47:11 +05:00
parent 475185fb72
commit 046c3d5ad4

View File

@ -81,6 +81,7 @@ func StreamContent(masterClient wdclient.HasLookupFileIdFunction, writer io.Writ
urlStrings, err = masterClient.GetLookupFileIdFunction()(chunkView.FileId)
if err != nil || len(urlStrings) == 0 {
time.Sleep(backoff)
} else {
break
}
}