diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-04-16 13:11:37 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-04-16 13:15:52 -0500 |
commit | 77de440f28804b75137175922b93cdb06ccaa293 (patch) | |
tree | d250a99e9bea7a1ef175dcc8e133795db2818ab3 | |
parent | 7c5c0c1c4029c731c0923a0f97a5d9294c0570ce (diff) | |
download | ofono-77de440f28804b75137175922b93cdb06ccaa293.tar.bz2 |
atmodem: Remove ussd atom in case we fail to init
-rw-r--r-- | drivers/atmodem/ussd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/atmodem/ussd.c b/drivers/atmodem/ussd.c index 443251aa..2e45317d 100644 --- a/drivers/atmodem/ussd.c +++ b/drivers/atmodem/ussd.c @@ -286,6 +286,7 @@ static void at_ussd_register(gboolean ok, GAtResult *result, gpointer user) if (!ok) { ofono_error("Could not enable CUSD notifications"); + ofono_ussd_remove(ussd); return; } |