Skip to content

Commit

Permalink
analizators/s3966
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhorukovAnton committed Dec 28, 2021
1 parent 5e91416 commit f244266
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public override void RunJob(DistributedTask distributedTask, CancellationToken c
using var scope = ThirdPartyOperation.CreateScope();
var scopeClass = scope.ServiceProvider.GetService<FileDownloadOperationScope>();
var (globalStore, filesLinkUtility, _, _, _) = scopeClass;
var stream = TempStream.Create();
using var stream = TempStream.Create();

(ThirdPartyOperation as FileDownloadOperation<string>).CompressToZip(stream, scope);
(DaoOperation as FileDownloadOperation<int>).CompressToZip(stream, scope);
Expand Down Expand Up @@ -294,8 +294,6 @@ internal void CompressToZip(Stream stream, IServiceScope scope)
{
if (CancellationToken.IsCancellationRequested)
{
compressTo.Dispose();
stream.Dispose();
CancellationToken.ThrowIfCancellationRequested();
}

Expand Down

0 comments on commit f244266

Please sign in to comment.