iface-modem-3gpp: don't try to update anything if no skeleton available
This commit is contained in:
@@ -602,6 +602,9 @@ update_registration_state (MMIfaceModem3gpp *self,
|
|||||||
MM_IFACE_MODEM_3GPP_DBUS_SKELETON, &skeleton,
|
MM_IFACE_MODEM_3GPP_DBUS_SKELETON, &skeleton,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
if (!skeleton)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Only set new state if different */
|
/* Only set new state if different */
|
||||||
if (new_state != old_state) {
|
if (new_state != old_state) {
|
||||||
mm_info ("Modem %s: 3GPP Registration state changed (%s -> %s)",
|
mm_info ("Modem %s: 3GPP Registration state changed (%s -> %s)",
|
||||||
|
Reference in New Issue
Block a user