summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2009-11-21 18:56:48 +0800
committerMarcel Holtmann <marcel@holtmann.org>2009-11-23 09:07:57 +0100
commit040d660d41cf83cb068e45e63646c94b8f17251f (patch)
tree833b01c4079b54b5fac199d32f53709cbe764535 /src
parentf3fe75553ac5b366e34fddd4df0a5e5435f8cc02 (diff)
downloadofono-040d660d41cf83cb068e45e63646c94b8f17251f.tar.bz2
Emit settings signal before active signal
Diffstat (limited to 'src')
-rw-r--r--src/gprs.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gprs.c b/src/gprs.c
index b5332095..57bb7942 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -374,18 +374,19 @@ static void pri_activate_callback(const struct ofono_error *error,
__ofono_dbus_pending_reply(&gc->pending,
dbus_message_new_method_return(gc->pending));
- value = ctx->active;
- ofono_dbus_signal_property_changed(conn, ctx->path,
- DATA_CONTEXT_INTERFACE,
- "Active", DBUS_TYPE_BOOLEAN,
- &value);
-
/* If we don't have the interface, don't bother emitting any settings,
* as nobody can make use of them
*/
if (interface != NULL)
pri_update_context_settings(ctx, interface, static_ip,
ip, netmask, gateway, dns);
+
+ value = ctx->active;
+ ofono_dbus_signal_property_changed(conn, ctx->path,
+ DATA_CONTEXT_INTERFACE,
+ "Active", DBUS_TYPE_BOOLEAN,
+ &value);
+
}
static void pri_deactivate_callback(const struct ofono_error *error, void *data)