From ae096831e5dad0453ad527a98323d4e69c1d771c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 3 Mar 2011 22:07:21 -0600 Subject: gprs: Also reset active in release_context --- src/gprs.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/gprs.c') diff --git a/src/gprs.c b/src/gprs.c index b478f88d..2b0887f0 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -297,6 +297,7 @@ static void release_context(struct pri_context *ctx) ctx->context.cid = 0; ctx->context_driver->inuse = FALSE; ctx->context_driver = NULL; + ctx->active = FALSE; } static struct pri_context *gprs_context_by_path(struct ofono_gprs *gprs, @@ -784,7 +785,6 @@ static void pri_deactivate_callback(const struct ofono_error *error, void *data) } release_context(ctx); - ctx->active = FALSE; __ofono_dbus_pending_reply(&ctx->pending, dbus_message_new_method_return(ctx->pending)); @@ -1349,8 +1349,8 @@ static void gprs_attached_update(struct ofono_gprs *gprs) continue; release_context(ctx); - ctx->active = FALSE; pri_reset_context_settings(ctx); + value = FALSE; ofono_dbus_signal_property_changed(conn, ctx->path, OFONO_CONNECTION_CONTEXT_INTERFACE, @@ -1828,8 +1828,6 @@ static void gprs_deactivate_for_all(const struct ofono_error *error, } release_context(ctx); - - ctx->active = FALSE; pri_reset_context_settings(ctx); value = ctx->active; @@ -2081,8 +2079,6 @@ void ofono_gprs_context_deactivated(struct ofono_gprs_context *gc, break; release_context(ctx); - ctx->active = FALSE; - pri_reset_context_settings(ctx); value = FALSE; -- cgit v1.2.3