server: proxy: do not start client if post connect hook failed
This commit is contained in:
parent
0bf225ec60
commit
564b784ebc
@ -170,6 +170,9 @@ static BOOL pf_server_post_connect(freerdp_peer* peer)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!pf_modules_run_hook(HOOK_TYPE_SERVER_POST_CONNECT, pdata))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
/* Start a proxy's client in it's own thread */
|
/* Start a proxy's client in it's own thread */
|
||||||
if (!(pdata->client_thread = CreateThread(NULL, 0, pf_client_start, pc, 0, NULL)))
|
if (!(pdata->client_thread = CreateThread(NULL, 0, pf_client_start, pc, 0, NULL)))
|
||||||
{
|
{
|
||||||
@ -179,7 +182,7 @@ static BOOL pf_server_post_connect(freerdp_peer* peer)
|
|||||||
|
|
||||||
pf_server_register_input_callbacks(peer->input);
|
pf_server_register_input_callbacks(peer->input);
|
||||||
pf_server_register_update_callbacks(peer->update);
|
pf_server_register_update_callbacks(peer->update);
|
||||||
return pf_modules_run_hook(HOOK_TYPE_SERVER_POST_CONNECT, pdata);
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL pf_server_activate(freerdp_peer* peer)
|
static BOOL pf_server_activate(freerdp_peer* peer)
|
||||||
|
Loading…
Reference in New Issue
Block a user