diff --git a/server/proxy/freerdp_proxy.c b/server/proxy/freerdp_proxy.c index 2c0023008..d6888f424 100644 --- a/server/proxy/freerdp_proxy.c +++ b/server/proxy/freerdp_proxy.c @@ -94,8 +94,6 @@ int main(int argc, char* argv[]) if (argc >= 2) config_path = argv[1]; - pf_server_register_signal_handlers(); - config = pf_server_config_load(config_path); if (!config) goto fail; @@ -113,6 +111,8 @@ int main(int argc, char* argv[]) if (!is_all_required_modules_loaded(config)) goto fail; + pf_server_register_signal_handlers(); + server = pf_server_new(config); if (!server) goto fail;