From 93ac1669a069a1bcce1ed121ca60977db53abf4e Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 26 Mar 2013 10:53:41 -0500 Subject: sim900: Fix disable cleanup procedure --- plugins/sim900.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'plugins/sim900.c') diff --git a/plugins/sim900.c b/plugins/sim900.c index df628543..6cfed653 100644 --- a/plugins/sim900.c +++ b/plugins/sim900.c @@ -311,11 +311,7 @@ static void cfun_disable(gboolean ok, GAtResult *result, gpointer user_data) DBG(""); - g_at_mux_shutdown(data->mux); - g_at_mux_unref(data->mux); - - g_at_chat_unref(data->dlcs[SETUP_DLC]); - data->dlcs[SETUP_DLC] = NULL; + shutdown_device(data); if (ok) ofono_modem_set_powered(modem, FALSE); @@ -330,8 +326,6 @@ static int sim900_disable(struct ofono_modem *modem) g_at_chat_send(data->dlcs[SETUP_DLC], "AT+CFUN=4", none_prefix, cfun_disable, modem, NULL); - shutdown_device(data); - return -EINPROGRESS; } -- cgit v1.2.3