Skip to content

Commit

Permalink
remote: Require ConnectToEIS() to have a started session
Browse files Browse the repository at this point in the history
Otherwise we may allow user interactions even before it's been granted.
  • Loading branch information
ofourdan authored and whot committed Jan 5, 2023
1 parent f369714 commit 3a02061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libportal/remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ xdp_session_connect_to_eis(XdpSession *session)
int fd_out = -1;

g_return_val_if_fail (session->type == XDP_SESSION_REMOTE_DESKTOP, -EINVAL);
g_return_val_if_fail (xdp_session_get_session_state (session) == XDP_SESSION_INITIAL, -EBUSY);
g_return_val_if_fail (xdp_session_get_session_state (session) == XDP_SESSION_ACTIVE, -EBUSY);
g_return_val_if_fail (!session->uses_eis, -EALREADY);

if (portal->remote_desktop_interface_version < 2)
Expand Down

0 comments on commit 3a02061

Please sign in to comment.