mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-02-10 13:57:27 +03:00
app,vnc: Don't retry to authenticate when vvfile authentication fails
When connecting to a RHEVM/oVirt machine through an expired vvfile the user ends up in an endless loop of getting an error message, pressing "Okay", re-scheduling a new connection retry. getting an error message due to the expired vvfile and so on. In order to avoid the issue, let's not re-schedule the connection retry when the user tries to connect through a vvfile and it fails. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
e204c25799
commit
0bba2d07af
@ -1452,7 +1452,8 @@ static void virt_viewer_app_auth_refused(VirtViewerSession *session,
|
||||
|
||||
/* if the session implementation cannot retry auth automatically, the
|
||||
* VirtViewerApp needs to schedule a new connection to retry */
|
||||
priv->authretry = !virt_viewer_session_can_retry_auth(session);
|
||||
priv->authretry = (!virt_viewer_session_can_retry_auth(session) &&
|
||||
!virt_viewer_session_get_file(session));
|
||||
}
|
||||
|
||||
static void virt_viewer_app_auth_unsupported(VirtViewerSession *session G_GNUC_UNUSED,
|
||||
|
Loading…
x
Reference in New Issue
Block a user