summaryrefslogtreecommitdiffstats
path: root/src/gprs.c
diff options
context:
space:
mode:
authorTomasz Gregorek <tomasz.gregorek@stericsson.com>2011-01-20 13:16:59 +0100
committerMarcel Holtmann <marcel@holtmann.org>2011-01-20 13:31:29 +0100
commit33aaeb9dffcb12032c811d56786489fd9bf433fa (patch)
treefa8d6938be16304cfcad6b2ac3a389c5a1beb0bb /src/gprs.c
parent1b10f55f5c33feec78116ce8c12114f54d0d1846 (diff)
downloadofono-33aaeb9dffcb12032c811d56786489fd9bf433fa.tar.bz2
gprs: mark context driver as not used when removing active context
Diffstat (limited to 'src/gprs.c')
-rw-r--r--src/gprs.c2
1 files changed, 2 insertions, 0 deletions
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);