device: launch modem initialization after inhibition

The mm_device_create_modem() was updated so that it would not run the
modem initialization implicitly. Due to this change, we must ensure
the modem initialization is run after a modem inhibition operation
after we recreate the modem object.

Fixes: 04d826f563
This commit is contained in:
Aleksander Morgado
2024-04-30 00:00:34 +02:00
parent 95099a3ef4
commit 040adb141a
+6 -1
View File
@@ -759,7 +759,12 @@ mm_device_uninhibit (MMDevice *self,
{
g_assert (self->priv->inhibited);
self->priv->inhibited = FALSE;
return mm_device_create_modem (self, error);
if (!mm_device_create_modem (self, error))
return FALSE;
mm_device_initialize_modem (self);
return TRUE;
}
/*****************************************************************************/