Commit 907e6c56 authored by Bruce MacDonald's avatar Bruce MacDonald
Browse files

unlock downloadu in case or requestDownload err

parent 868e3b31
......@@ -85,6 +85,7 @@ func monitorDownload(ctx context.Context, mp ModelPath, regOpts *RegistryOptions
// resume the download
resp, err := requestDownload(ctx, mp, regOpts, f)
if err != nil {
downloadMu.Unlock()
return fmt.Errorf("resume: %w", err)
}
inProgress.Store(f.Digest, f)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment