broadband-modem: skip time interface sync if no time support

This commit is contained in:
Aleksander Morgado
2021-05-23 14:31:13 +02:00
parent 41db2e5e82
commit ac1ff45f44

View File

@@ -11997,10 +11997,14 @@ syncing_step (GTask *task)
/*
* Synchronize asynchronously the Time interface.
*/
mm_obj_info (self, "resume synchronization state (%d/%d): time interface sync",
ctx->step, SYNCING_STEP_LAST);
mm_iface_modem_time_sync (MM_IFACE_MODEM_TIME (self), (GAsyncReadyCallback)iface_modem_time_sync_ready, task);
return;
if (self->priv->modem_time_dbus_skeleton) {
mm_obj_info (self, "resume synchronization state (%d/%d): time interface sync",
ctx->step, SYNCING_STEP_LAST);
mm_iface_modem_time_sync (MM_IFACE_MODEM_TIME (self), (GAsyncReadyCallback)iface_modem_time_sync_ready, task);
return;
}
ctx->step++;
/* fall through */
case SYNCING_STEP_LAST:
mm_obj_info (self, "resume synchronization state (%d/%d): all done",