mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
rdp: notify the Activate state as soon as it happens
Without the patch, we parse more packets and the calling code doesn't have the opportunity to invoke PostConnect callback (make the connection not work in the proxy)
This commit is contained in:
@@ -1631,6 +1631,9 @@ static state_run_t rdp_handle_sc_flags(rdpRdp* rdp, wStream* s, UINT32 flag,
|
||||
{
|
||||
if (!rdp_client_transition_to_state(rdp, nextState))
|
||||
status = STATE_RUN_FAILED;
|
||||
else
|
||||
status = (rdp_get_state(rdp) == CONNECTION_STATE_ACTIVE) ? STATE_RUN_ACTIVE
|
||||
: STATE_RUN_SUCCESS;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user