mirror of git://git.sysmocom.de/ofono
atmodem: Remove ussd atom in case we fail to init
This commit is contained in:
parent
7c5c0c1c40
commit
77de440f28
|
@ -286,6 +286,7 @@ static void at_ussd_register(gboolean ok, GAtResult *result, gpointer user)
|
||||||
|
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
ofono_error("Could not enable CUSD notifications");
|
ofono_error("Could not enable CUSD notifications");
|
||||||
|
ofono_ussd_remove(ussd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue