[server,shadow] rdp_server_reactivate do not wait

in rdp_server_reactivate do not wait for the server to change state, let
the peer state machine handle that.
This commit is contained in:
Armin Novak 2022-12-18 17:02:12 +01:00 committed by akallabeth
parent 29c92af194
commit 34f44ce4a1
1 changed files with 2 additions and 5 deletions

View File

@ -1592,11 +1592,8 @@ BOOL rdp_server_reactivate(rdpRdp* rdp)
return FALSE;
rdp_finalize_set_flag(rdp, FINALIZE_DEACTIVATE_REACTIVATE);
if (!rdp_server_transition_to_state(rdp, CONNECTION_STATE_CAPABILITIES_EXCHANGE_DEMAND_ACTIVE))
return FALSE;
state_run_t rc = rdp_peer_handle_state_demand_active(client);
return state_run_success(rc);
return rdp_server_transition_to_state(rdp,
CONNECTION_STATE_CAPABILITIES_EXCHANGE_DEMAND_ACTIVE);
}
static BOOL rdp_is_active_peer_state(CONNECTION_STATE state)