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
This commit is contained in:
George Kiagiadakis 2019-10-02 21:18:44 +03:00
parent 897d94c7dd
commit 48fbabcc3f

View file

@ -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;
}