gprs: mark context driver as not used when removing active context

This commit is contained in:
Tomasz Gregorek 2011-01-20 13:16:59 +01:00 committed by Marcel Holtmann
parent 1b10f55f5c
commit 33aaeb9dff
1 changed files with 2 additions and 0 deletions

View File

@ -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);