Skip to content

Commit

Permalink
Issue #106: Fixed exception thrown by MIKMIDIConnectionManager when u…
Browse files Browse the repository at this point in the history
…nplugging virtual MIDI device.
  • Loading branch information
Andrew Madsen committed Nov 6, 2015
1 parent 428fc38 commit 8d2002f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/MIKMIDIConnectionManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ - (NSString *)deviceNameFromVirtualEndpoint:(MIKMIDIEndpoint *)endpoint
- (MIKMIDIDevice *)deviceContainingEndpoint:(MIKMIDIEndpoint *)endpoint
{
if (!endpoint) return nil;
NSMutableSet *devices = [self.availableDevices mutableCopy];
NSMutableSet *devices = [NSMutableSet setWithArray:self.availableDevices];
[devices unionSet:self.connectedDevices];
for (MIKMIDIDevice *device in devices) {
NSMutableSet *deviceEndpoints = [NSMutableSet setWithArray:[device.entities valueForKeyPath:@"@distinctUnionOfArrays.sources"]];
Expand Down

0 comments on commit 8d2002f

Please sign in to comment.