Skip to content

Commit

Permalink
Leave VSM stream open (fixes #173)
Browse files Browse the repository at this point in the history
  • Loading branch information
scovetta committed Nov 30, 2020
1 parent 4a7c519 commit c3a83cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shared/PackageManagers/VSMProjectManager.cs
Expand Up @@ -58,7 +58,7 @@ public override async Task<IEnumerable<string>> DownloadVersion(PackageURL purl,
var response = await WebClient.SendAsync(requestMessage);
resultStream = await response.Content.ReadAsStreamAsync();

using var resultStreamReader = new StreamReader(resultStream);
using var resultStreamReader = new StreamReader(resultStream, leaveOpen: true);
SetCache(packageName, resultStreamReader.ReadToEnd());
resultStream.Seek(0, SeekOrigin.Begin);
}
Expand Down

0 comments on commit c3a83cf

Please sign in to comment.