external: Don't load the plugin more than once
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 23 Jun 2009 22:52:28 +0000 (01:52 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 23 Jun 2009 22:52:28 +0000 (01:52 +0300)
src/plugins/external/rygel-external-plugin-factory.vala

index e82272e..d1d7e5e 100644 (file)
@@ -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));
             }