ifxmodem: Fix GPRS disconnect handling from network side

This commit is contained in:
Marcel Holtmann 2010-10-26 14:43:49 +02:00
parent 483663eeed
commit 3477a9c9e9
1 changed files with 9 additions and 5 deletions

View File

@ -387,14 +387,18 @@ static void cgev_notify(GAtResult *result, gpointer user_data)
return;
if (gcd->state != STATE_IDLE && gcd->rawip) {
g_at_rawip_shutdown(gcd->rawip);
g_at_rawip_unref(gcd->rawip);
gcd->rawip = NULL;
gcd->active_context = 0;
gcd->state = STATE_IDLE;
g_at_chat_resume(gcd->chat);
}
ofono_gprs_context_deactivated(gc, gcd->active_context);
gcd->active_context = 0;
gcd->state = STATE_IDLE;
g_at_chat_resume(gcd->chat);
}
static int ifx_gprs_context_probe(struct ofono_gprs_context *gc,