Commit 48fbabcc authored by George Kiagiadakis's avatar George Kiagiadakis

daemon: do not access the inexistent error-message property from core

This is a remainder from the old WpRemote, which is gone.
I would re-add the property, but it's not worth it, since libpipewire
prints it as well by default
parent 897d94c7
......@@ -80,13 +80,9 @@ remote_state_changed (WpCore *core, WpRemoteState state,
daemon_exit_static_str (d, WP_CODE_DISCONNECTED,
"disconnected from pipewire");
break;
case WP_REMOTE_STATE_ERROR: {
g_autofree gchar *error;
g_object_get (core, "error-message", &error, NULL);
daemon_exit (d, WP_CODE_OPERATION_FAILED, "pipewire remote error: %s",
error);
case WP_REMOTE_STATE_ERROR:
daemon_exit (d, WP_CODE_OPERATION_FAILED, "pipewire remote error");
break;
}
default:
break;
}
......
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