mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-30 10:03:47 +00:00
Check for the right spice version in session-spice.c
We have to check for the spice version where the SPICE_CLIENT_ERROR_AUTH_NEEDS_PASSWORD_AND_USERNAME was introduced and not for the one where spice_channel_get_error() was introduced.
This commit is contained in:
parent
65560fa466
commit
ccc3fbe16a
@ -514,7 +514,7 @@ virt_viewer_session_spice_main_channel_event(SpiceChannel *channel G_GNUC_UNUSED
|
||||
const GError *error = NULL;
|
||||
g_debug("main channel: auth failure (wrong username/password?)");
|
||||
|
||||
#if SPICE_GTK_CHECK_VERSION(0, 23, 21)
|
||||
#if SPICE_GTK_CHECK_VERSION(0, 25, 46)
|
||||
{
|
||||
error = spice_channel_get_error(channel);
|
||||
username_required = g_error_matches(error,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user