[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.
@@ -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)
