mirror of https://github.com/oxen-io/lokinet
force number of workers in threadpool
This commit is contained in:
parent
45df00b632
commit
c43a075b74
|
@ -223,10 +223,9 @@ struct llarp_threadpool
|
|||
struct llarp_threadpool *
|
||||
llarp_init_threadpool(int workers, const char *name)
|
||||
{
|
||||
if(workers > 0)
|
||||
return new llarp_threadpool(workers, name, false);
|
||||
else
|
||||
return nullptr;
|
||||
if(workers <= 0)
|
||||
workers = 1;
|
||||
return new llarp_threadpool(workers, name, false);
|
||||
}
|
||||
|
||||
struct llarp_threadpool *
|
||||
|
|
Loading…
Reference in New Issue