mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 08:17:03 +00:00
unlock downloadu in case or requestDownload err
This commit is contained in:
@@ -85,6 +85,7 @@ func monitorDownload(ctx context.Context, mp ModelPath, regOpts *RegistryOptions
|
|||||||
// resume the download
|
// resume the download
|
||||||
resp, err := requestDownload(ctx, mp, regOpts, f)
|
resp, err := requestDownload(ctx, mp, regOpts, f)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
downloadMu.Unlock()
|
||||||
return fmt.Errorf("resume: %w", err)
|
return fmt.Errorf("resume: %w", err)
|
||||||
}
|
}
|
||||||
inProgress.Store(f.Digest, f)
|
inProgress.Store(f.Digest, f)
|
||||||
|
|||||||
Reference in New Issue
Block a user