Skip to content

Commit

Permalink
Bug fix (remove old patches befor new scan) #1
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriiKh committed Jun 27, 2020
1 parent 9b08d7a commit d6cd60c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions CarefulAudioRepair/Data/Channel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ public void Dispose()
public double[] GetInputRange(int start, int length) =>
this.scannerTools.Input.Skip(start - 1).Take(length).ToArray();

private void RemoveAllPatches()
{
this.scannerTools.PatchCollection.RemoveAllPatches();
}

private void RegisterPatch(AbstractPatch patch)
{
patch.Updater += this.PatchUpdater;
Expand Down
2 changes: 2 additions & 0 deletions CarefulAudioRepair/Processing/Scanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ private ScannerTools Scan(IProgress<string> status, IProgress<double> progress)
this.tools.GetReady(status, progress);
}

this.tools.PatchCollection.RemoveAllPatches();

var suspects = this.DetectSuspiciousSamples(status, progress);

if (suspects.Any())
Expand Down

0 comments on commit d6cd60c

Please sign in to comment.