stemodem: Check for ok in voicecall_initialize

This commit is contained in:
Marit Henriksen 2011-02-04 15:40:04 +01:00 committed by Denis Kenzior
parent 8453b2680e
commit 49457675a3
1 changed files with 7 additions and 0 deletions

View File

@ -535,6 +535,13 @@ static void ste_voicecall_initialized(gboolean ok, GAtResult *result,
struct ofono_voicecall *vc = user_data;
struct voicecall_data *vd = ofono_voicecall_get_data(vc);
if (!ok) {
ofono_error("*ECAV not enabled. "
"Do not have proper call handling");
ofono_voicecall_remove(vc);
return;
}
g_at_chat_register(vd->chat, "*ECAV:", ecav_notify, FALSE, vc, NULL);
ofono_voicecall_register(vc);
}