diff --git a/Source/MIKMIDIInputPort.m b/Source/MIKMIDIInputPort.m index 659f5ec5..7aab44ee 100644 --- a/Source/MIKMIDIInputPort.m +++ b/Source/MIKMIDIInputPort.m @@ -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]) {