Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't die horribly when the port label isn't the same

  • Loading branch information...
commit 1d02b675ad6ca7854f523b6ca2278cf18895884d 1 parent d4ea767
Jonathan del Strother authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 BBOSCManager.m
View
7 BBOSCManager.m
@@ -65,11 +65,16 @@ - (BBOSCInPort *) createNewInputForPort:(int)p withLabel:(NSString *)l {
BBOSCInPort* resultingPort = nil;
for(BBOSCInPort* oscPort in inputPorts) {
if (oscPort.port == p) {
- NSAssert([oscPort.portLabel isEqualToString:l], @"Need to be using the same label");
resultingPort = oscPort;
break;
}
}
+
+ if (resultingPort && ![resultingPort.portLabel isEqualToString:l]) {
+ NSLog(@"Need to be using the same label");
+ return nil;
+ }
+
if (!resultingPort) {
resultingPort = [[[BBOSCInPort alloc] initWithManager:oscManager withPort:p label:l] autorelease];
}
Please sign in to comment.
Something went wrong with that request. Please try again.