iface-modem-firmware: fix error reporting on firmware change

This commit is contained in:
Aleksander Morgado
2012-10-05 11:07:41 +02:00
parent d4b6b8dd8c
commit da8cc53636

View File

@@ -181,7 +181,7 @@ change_current_ready (MMIfaceModemFirmware *self,
{
GError *error = NULL;
if (!MM_IFACE_MODEM_FIRMWARE_GET_INTERFACE (self)->load_current_finish (self, res, &error))
if (!MM_IFACE_MODEM_FIRMWARE_GET_INTERFACE (self)->change_current_finish (self, res, &error))
g_dbus_method_invocation_take_error (ctx->invocation, error);
else
mm_gdbus_modem_firmware_complete_select (ctx->skeleton, ctx->invocation);