aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mm-broadband-modem.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c
index 3e0d5ed3..92ff239b 100644
--- a/src/mm-broadband-modem.c
+++ b/src/mm-broadband-modem.c
@@ -3425,7 +3425,6 @@ modem_3gpp_ussd_send (MMIfaceModem3gppUssd *self,
GAsyncReadyCallback callback,
gpointer user_data)
{
- MMBroadbandModem *broadband = MM_BROADBAND_MODEM (self);
GError *error = NULL;
GSimpleAsyncResult *result;
gchar *at_command;
@@ -3446,10 +3445,9 @@ modem_3gpp_ussd_send (MMIfaceModem3gppUssd *self,
&scheme,
&error);
if (!hex) {
- g_simple_async_result_take_error (broadband->priv->pending_ussd_action, error);
- g_simple_async_result_complete_in_idle (broadband->priv->pending_ussd_action);
- g_object_unref (broadband->priv->pending_ussd_action);
- broadband->priv->pending_ussd_action = NULL;
+ g_simple_async_result_take_error (result, error);
+ g_simple_async_result_complete_in_idle (result);
+ g_object_unref (result);
return;
}