Commit bee1d88a authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

LP909512: Fix crash on tp_set_threadpool_size if threadpool is not...

LP909512: Fix crash on tp_set_threadpool_size if threadpool is not used(thread_handling != pool-of-threads)
parent b9f2fb84
...@@ -1343,6 +1343,9 @@ void tp_end() ...@@ -1343,6 +1343,9 @@ void tp_end()
int tp_set_threadpool_size(uint size) int tp_set_threadpool_size(uint size)
{ {
bool success= true; bool success= true;
if (!started)
return 0;
for(uint i=0; i< size; i++) for(uint i=0; i< size; i++)
{ {
thread_group_t *group= &all_groups[i]; thread_group_t *group= &all_groups[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment