[rygel] core: Add factory before creating devices from it
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Add factory before creating devices from it
- Date: Wed, 29 Jul 2009 22:01:35 +0000 (UTC)
commit b14a0fc300067c840ebb03011c8fd204bb990516
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Jul 30 03:53:50 2009 +0300
core: Add factory before creating devices from it
src/rygel/rygel-main.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-main.vala b/src/rygel/rygel-main.vala
index 4cdfbdc..8c95b3c 100644
--- a/src/rygel/rygel-main.vala
+++ b/src/rygel/rygel-main.vala
@@ -107,6 +107,8 @@ public class Rygel.Main : Object {
if (host_ip == null || host_ip == context.host_ip) {
var factory = new RootDeviceFactory (context);
+ this.factories.add (factory);
+
var plugins = new ArrayList <Plugin> ();
foreach (var plugin in this.plugin_loader.list_plugins ()) {
plugins.add (plugin);
@@ -115,8 +117,6 @@ public class Rygel.Main : Object {
foreach (var plugin in plugins) {
this.create_device (plugin, factory);
}
-
- this.factories.add (factory);
} else {
debug ("Ignoring network context %s (%s).",
context.interface,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]