Commit bb7994a2 authored by Guido Gunther's avatar Guido Gunther Committed by Guido Gunther

wwan-mm: Give up if we can't get proxy

Just printing a warning is no enough.

Access to `priv->proxy` is guarded by

  g_return_if_fail (priv->proxy);

throughout the file.
Signed-off-by: Guido Gunther's avatarGuido Günther <>
parent bf5f6d8e
......@@ -294,7 +294,7 @@ static void
init_modem (PhoshWWanMM *self, const gchar *object_path)
PhoshWWanMMPrivate *priv = phosh_wwan_mm_get_instance_private (self);
GError *err = NULL;
g_autoptr(GError) err = NULL;
priv->proxy = phosh_wwan_mm_org_freedesktop_modem_manager1_modem_proxy_new_for_bus_sync (
......@@ -306,7 +306,7 @@ init_modem (PhoshWWanMM *self, const gchar *object_path)
if (priv->proxy == NULL) {
g_warning ("Can't query modem at %s: %s", object_path, err->message);
g_clear_error (&err);
priv->object_path = g_strdup (object_path);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment