1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

Put web server for API in place in the main window (1)

This commit is contained in:
f4exb
2017-11-17 08:52:15 +01:00
parent 5628b580ce
commit 279a88a17f
8 changed files with 39 additions and 5 deletions
+6 -1
View File
@@ -66,7 +66,12 @@ HttpConnectionHandler* HttpConnectionHandlerPool::getConnectionHandler()
int maxConnectionHandlers = useQtSettings ? settings->value("maxThreads",100).toInt() : listenerSettings.maxThreads;
if (pool.count()<maxConnectionHandlers)
{
freeHandler=new HttpConnectionHandler(settings,requestHandler,sslConfiguration);
if (useQtSettings) {
freeHandler = new HttpConnectionHandler(settings, requestHandler, sslConfiguration);
} else {
freeHandler = new HttpConnectionHandler(listenerSettings, requestHandler, sslConfiguration);
}
freeHandler->setBusy();
pool.append(freeHandler);
}