option,hso: fix async completion in 3gpp event handlers setting

This commit is contained in:
Aleksander Morgado
2017-07-17 10:15:36 +02:00
parent f3a301db3c
commit a3c980c78b

View File

@@ -306,7 +306,7 @@ parent_setup_unsolicited_events_ready (MMIfaceModem3gpp *self,
self,
NULL);
g_simple_async_result_set_op_res_gboolean (G_SIMPLE_ASYNC_RESULT (res), TRUE);
g_simple_async_result_set_op_res_gboolean (simple, TRUE);
}
g_simple_async_result_complete (simple);
@@ -342,7 +342,7 @@ parent_cleanup_unsolicited_events_ready (MMIfaceModem3gpp *self,
if (!iface_modem_3gpp_parent->cleanup_unsolicited_events_finish (self, res, &error))
g_simple_async_result_take_error (simple, error);
else
g_simple_async_result_set_op_res_gboolean (G_SIMPLE_ASYNC_RESULT (res), TRUE);
g_simple_async_result_set_op_res_gboolean (simple, TRUE);
g_simple_async_result_complete (simple);
g_object_unref (simple);
}