Skip to content

Commit

Permalink
Fixed bug that caused device / endpoint disconnection to fail to have…
Browse files Browse the repository at this point in the history
… any effect.
  • Loading branch information
Andrew Madsen committed Nov 6, 2015
1 parent 6f5a524 commit 37df9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/MIKMIDIInputPort.m
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ - (void)removeEventHandlerForConnectionToken:(NSString *)connectionToken source:

- (MIKMIDISourceEndpoint *)sourceEndpointForConnectionToken:(NSString *)token
{
for (MIKMIDISourceEndpoint *source in self.handlerTokenPairsByEndpoint.objectEnumerator) {
for (MIKMIDISourceEndpoint *source in self.handlerTokenPairsByEndpoint) {
NSArray *handlerPairs = [self.handlerTokenPairsByEndpoint objectForKey:source];
for (MIKMIDIConnectionTokenAndEventHandler *handlerPair in handlerPairs) {
if ([handlerPair.connectionToken isEqual:token]) {
Expand Down

0 comments on commit 37df9f4

Please sign in to comment.