[rygel] external: Don't load the plugin more than once
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] external: Don't load the plugin more than once
- Date: Wed, 24 Jun 2009 11:46:35 +0000 (UTC)
commit 0381607ee07fba51e194c62f7c1fd596c28fc8e6
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Jun 24 01:52:28 2009 +0300
external: Don't load the plugin more than once
.../external/rygel-external-plugin-factory.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/external/rygel-external-plugin-factory.vala b/src/plugins/external/rygel-external-plugin-factory.vala
index e82272e..d1d7e5e 100644
--- a/src/plugins/external/rygel-external-plugin-factory.vala
+++ b/src/plugins/external/rygel-external-plugin-factory.vala
@@ -73,7 +73,8 @@ public class ExternalPluginFactory {
}
foreach (var service in services) {
- if (service.has_prefix (SERVICE_PREFIX)) {
+ if (service.has_prefix (SERVICE_PREFIX) &&
+ this.loader.get_plugin_by_name (service) == null) {
this.loader.add_plugin (new ExternalPlugin (this.connection,
service));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]