Skip to content

Commit

Permalink
Remove destructor, problem if device detached
Browse files Browse the repository at this point in the history
  • Loading branch information
Koseng committed Mar 6, 2023
1 parent 05699c3 commit 7f07ae7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Midi/MidiDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,5 @@ void IDisposable.Dispose()
Close();
GC.SuppressFinalize(this);
}
/// <summary>
/// Closes the device if it's open
/// </summary>
~MidiDevice()
{
Close();
}
}
}

0 comments on commit 7f07ae7

Please sign in to comment.