aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-01-25 17:22:20 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:58 +0100
commit64de09f052af5f5ecb0bc295bdcdccff803657ee (patch)
treeb32fa76aea7ad58f49540c6cffef56e0264397ba
parentffa374c793ac360262e414cab16c40edd1859543 (diff)
broadband-modem: if failed to initialize an optional interface, shut it down
-rw-r--r--src/mm-broadband-modem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c
index 0d72cf09..61a982ed 100644
--- a/src/mm-broadband-modem.c
+++ b/src/mm-broadband-modem.c
@@ -5137,6 +5137,8 @@ initialize_finish (MMBaseModem *self,
\
mm_dbg ("Couldn't initialize interface: '%s'", \
error->message); \
+ /* Just shutdown the interface */ \
+ mm_##NAME##_shutdown (TYPE (self)); \
g_error_free (error); \
} else { \
/* bind simple properties */ \