[gnome-remote-desktop] session-rdp: Also unset RDP_PEER_ACTIVATED flag when session is stopped



commit 450ec753d245ea8d38ff6d35b99057778abadcf8
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Fri Mar 19 19:33:04 2021 +0100

    session-rdp: Also unset RDP_PEER_ACTIVATED flag when session is stopped
    
    Unsetting the RDP_PEER_ACTIVATED flag ensures that actions that depend
    on this flag won't run any more.
    Currently, only when the client disconnects, this flag is unset, but
    not, when the disconnection happened from gnome-shell.
    
    So, always unconditionally unset the RDP_PEER_ACTIVATED, when stopping
    the RDP session.

 src/grd-session-rdp.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
index 6cc4e15..5c65e31 100644
--- a/src/grd-session-rdp.c
+++ b/src/grd-session-rdp.c
@@ -1736,6 +1736,7 @@ grd_session_rdp_stop (GrdSession *session)
 
   g_debug ("Stopping RDP session");
 
+  unset_rdp_peer_flag (rdp_peer_context, RDP_PEER_ACTIVATED);
   if (WaitForSingleObject (session_rdp->stop_event, 0) == WAIT_TIMEOUT)
     {
       freerdp_set_error_info (peer->context->rdp,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]