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:
Fabiano Fidêncio 2016-07-02 01:49:07 +02:00
parent e204c25799
commit 0bba2d07af

View File

@ -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,