aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-07-22 13:08:56 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-07-22 13:33:25 +0200
commitce33bcfd7a2389a1d7255991afd0383eff763c53 (patch)
tree9f2b47d9aab993d4b1e9e55da80bae52c1fdfbdc
parent89cdb8819a1427c371b6f307608bcac6c12b5a12 (diff)
iface-modem-3gpp-ussd: set proper initial session state
-rw-r--r--src/mm-iface-modem-3gpp-ussd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-iface-modem-3gpp-ussd.c b/src/mm-iface-modem-3gpp-ussd.c
index bcb5b8ce..46bd5a42 100644
--- a/src/mm-iface-modem-3gpp-ussd.c
+++ b/src/mm-iface-modem-3gpp-ussd.c
@@ -571,6 +571,8 @@ interface_disabling_step (DisablingContext *ctx)
case DISABLING_STEP_LAST:
/* We are done without errors! */
+ mm_iface_modem_3gpp_ussd_update_state (MM_IFACE_MODEM_3GPP_USSD (ctx->self),
+ MM_MODEM_3GPP_USSD_SESSION_STATE_UNKNOWN);
g_simple_async_result_set_op_res_gboolean (ctx->result, TRUE);
disabling_context_complete_and_free (ctx);
return;
@@ -714,6 +716,8 @@ interface_enabling_step (EnablingContext *ctx)
case ENABLING_STEP_LAST:
/* We are done without errors! */
+ mm_iface_modem_3gpp_ussd_update_state (MM_IFACE_MODEM_3GPP_USSD (ctx->self),
+ MM_MODEM_3GPP_USSD_SESSION_STATE_IDLE);
g_simple_async_result_set_op_res_gboolean (ctx->result, TRUE);
enabling_context_complete_and_free (ctx);
return;