From 33aaeb9dffcb12032c811d56786489fd9bf433fa Mon Sep 17 00:00:00 2001 From: Tomasz Gregorek Date: Thu, 20 Jan 2011 13:16:59 +0100 Subject: [PATCH] gprs: mark context driver as not used when removing active context --- src/gprs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gprs.c b/src/gprs.c index 7ef81d51..0661f744 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -1679,6 +1679,8 @@ static void gprs_deactivate_for_remove(const struct ofono_error *error, gprs_cid_release(gprs, ctx->context.cid); ctx->context.cid = 0; + ctx->context_driver->inuse = FALSE; + ctx->context_driver = NULL; if (gprs->settings) { g_key_file_remove_group(gprs->settings, ctx->key, NULL);