server: proxy: add an indicative log listener->Open fails. fixes #5850

This commit is contained in:
Kobi Mizrachi 2020-01-21 11:02:12 +02:00 committed by akallabeth
parent c0cc676a4e
commit 6d3f658983

View File

@ -452,7 +452,11 @@ BOOL pf_server_start(proxyServer* server)
goto error;
if (!server->listener->Open(server->listener, server->config->Host, server->config->Port))
{
WLog_ERR(TAG,
"listener->Open failed! Port might be already used, or insufficient permissions.");
goto error;
}
server->thread = CreateThread(NULL, 0, pf_server_mainloop, (void*)server, 0, NULL);
if (!server->thread)