Skip to content

Commit

Permalink
Output: Don't initialize if Disposed
Browse files Browse the repository at this point in the history
  • Loading branch information
mat1jaczyyy committed Oct 6, 2020
1 parent 88c44bc commit d65c500
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Apollo/Devices/Output.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public Output(int target = -1): base("output") {
}

void Initialize() {
if (Disposed) return;

Program.Project.Tracks[_target].ParentIndexChanged += IndexChanged;
Program.Project.Tracks[_target].Disposing += IndexRemoved;
}
Expand Down

1 comment on commit d65c500

@RagnaLP
Copy link

@RagnaLP RagnaLP commented on d65c500 Oct 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes please

Please sign in to comment.