Permalink
Browse files

Close the port when QC execution stops

  • Loading branch information...
1 parent be6453b commit f4566abbcd546c8db32bafc4b7c96f6effdfa610 Jonathan del Strother committed Sep 10, 2009
Showing with 8 additions and 6 deletions.
  1. +4 −3 BBOSCPlugInSender.m
  2. +4 −3 BBOSCPluginReceiver.m
View
@@ -201,9 +201,10 @@ Return NO in case of failure during the execution (this will prevent rendering o
- (void) disableExecution:(id<QCPlugInContext>)context
{
- /*
- Called by Quartz Composer when the plug-in instance stops being used by Quartz Composer.
- */
+ if (self.oscPort) {
+ [self.oscManager removeOutput:self.oscPort];
+ self.oscPort = nil;
+ }
}
- (void) stopExecution:(id<QCPlugInContext>)context
View
@@ -225,9 +225,10 @@ Return NO in case of failure during the execution (this will prevent rendering o
- (void) disableExecution:(id<QCPlugInContext>)context
{
- /*
- Called by Quartz Composer when the plug-in instance stops being used by Quartz Composer.
- */
+ if (self.oscPort) {
+ [self.oscManager removeOutput:self.oscPort];
+ self.oscPort = nil;
+ }
}
- (void) stopExecution:(id<QCPlugInContext>)context

0 comments on commit f4566ab

Please sign in to comment.