force number of workers in threadpool

pull/15/head
Jeff Becker 6 years ago
parent 45df00b632
commit c43a075b74
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -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…
Cancel
Save