stemodem: Return immediately if not voice call.

This commit is contained in:
Marit Henriksen 2011-01-14 12:19:54 +01:00 committed by Marcel Holtmann
parent 84e942ace3
commit 1fe79aa8a5
1 changed files with 3 additions and 3 deletions

View File

@ -431,6 +431,9 @@ static void ecav_notify(GAtResult *result, gpointer user_data)
if (!g_at_result_iter_next_number(&iter, &call_type))
return;
if (call_type != BEARER_CLASS_VOICE)
return;
/* Skip process id and exit cause */
g_at_result_iter_skip_next(&iter);
g_at_result_iter_skip_next(&iter);
@ -452,9 +455,6 @@ static void ecav_notify(GAtResult *result, gpointer user_data)
return;
}
if (call_type != BEARER_CLASS_VOICE)
return;
/*
* Handle the call according to the status.
* If it doesn't exists we make a new one