Skip to content

Commit

Permalink
Restore stuff removed by resharper I was trying out
Browse files Browse the repository at this point in the history
  • Loading branch information
bcssov committed Sep 19, 2024
1 parent cb88d76 commit 1b60629
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/IronyModManager.Services/ModMergeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,9 @@ async void ModMergeCompressExporterProcessedFile(object sender, EventArgs e)
}

lastPercentage = percentage;

// ReSharper disable once DisposeOnUsingVariable - sod off
mutex.Dispose();
}

modMergeCompressExporter.ProcessedFile += ModMergeCompressExporterProcessedFile;
Expand Down Expand Up @@ -485,6 +488,9 @@ async void ModMergeCompressExporterProcessedFile(object sender, EventArgs e)
}
lastPercentage = innerPercentage;
// ReSharper disable once DisposeOnUsingVariable - sod off
innerProgressLock.Dispose();
}
string path;
Expand Down Expand Up @@ -525,6 +531,9 @@ async void ModMergeCompressExporterProcessedFile(object sender, EventArgs e)
lastPercentage = outerPercentage;
// ReSharper disable once DisposeOnUsingVariable - sod off
outerProgressLock.Dispose();
modMergeCompressExporter.Finalize(queueId,
Path.Combine(modDirRootPath, mergeCollectionPath, path));
renamePairs.Add(new KeyValuePair<string, string>(collectionMod.Name, newMod.Name));
Expand All @@ -537,6 +546,9 @@ async void ModMergeCompressExporterProcessedFile(object sender, EventArgs e)
await p.DisposeAsync();
});
await Task.WhenAll(streamTasks);
// ReSharper disable once DisposeOnUsingVariable - sod off
exportModLock.Dispose();
}
finally
{
Expand Down

0 comments on commit 1b60629

Please sign in to comment.