[Plugin Loader] Unregister loader callback
This callback should be unregistered when plugin loading completes, otherwise we could end up processing bundles loaded by external stuff, like Audio Units loading for MIDI playback. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
310a6d44f9
commit
4450f13a8e
1 changed files with 3 additions and 0 deletions
|
@ -196,6 +196,9 @@ static PluginController *sharedPluginController = nil;
|
|||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(bundleDidLoad:) name:NSBundleDidLoadNotification object:nil];
|
||||
|
||||
[self loadPlugins];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self name:NSBundleDidLoadNotification object:nil];
|
||||
|
||||
[self printPluginInfo];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue