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:
+6
-1
@@ -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;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user