if /auto-request-control, only request control once upon connect

if auto-request-control setting is enabled then only request control once upon connect, otherwise it will auto request control again every time server turns off control which is a bit annoying.
This commit is contained in:
garbb 2022-09-13 10:41:12 -07:00 committed by akallabeth
parent 66bef0c708
commit 0413dfe7df

View File

@ -1019,6 +1019,11 @@ client_encomsp_participant_created(EncomspClientContext* context,
{
if (!freerdp_client_encomsp_set_control(context, TRUE))
return ERROR_INTERNAL_ERROR;
// if auto-request-control setting is enabled then only request control once upon connect,
// otherwise it will auto request control again every time server turns off control which
// is a bit annoying
freerdp_settings_set_bool(settings, FreeRDP_RemoteAssistanceRequestControl, FALSE);
}
return CHANNEL_RC_OK;