From 907e6c56b3dff0b026ca6610452e388c9051e075 Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Mon, 31 Jul 2023 15:44:57 -0400 Subject: [PATCH] unlock downloadu in case or requestDownload err --- server/download.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/download.go b/server/download.go index 1a696f5f..d7fd0006 100644 --- a/server/download.go +++ b/server/download.go @@ -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)