waver : use 2 threads for file server

This commit is contained in:
Georgi Gerganov
2021-01-07 19:12:08 +02:00
parent 760312a269
commit 8421bdd186

View File

@@ -438,13 +438,13 @@ void initMain() {
g_isRunning = true;
g_ggWave = GGWave_instance();
#ifdef __EMSCRIPTEN__
GGSock::FileServer::Parameters p;
#ifdef __EMSCRIPTEN__
p.nWorkerThreads = 0;
g_fileServer.init(p);
#else
g_fileServer.init({});
p.nWorkerThreads = 2;
#endif
g_fileServer.init(p);
g_fileClient.setErrorCallback([](GGSock::Communicator::TErrorCode code) {
printf("Disconnected with code = %d\n", code);