diff --git a/server/proxy/pf_client.c b/server/proxy/pf_client.c index 6e79f50f8..8f06abf9b 100644 --- a/server/proxy/pf_client.c +++ b/server/proxy/pf_client.c @@ -382,7 +382,10 @@ static DWORD WINAPI pf_client_thread_proc(LPVOID arg) handles[64] = pdata->abort_event; if (!pf_modules_run_hook(HOOK_TYPE_CLIENT_PRE_CONNECT, (rdpContext*) ps)) + { + proxy_data_abort_connect(pdata); return FALSE; + } if (!pf_client_connect(instance)) {