db/upnp/WorkQueue: fix pthread_t[] allocation size
Was using the wrong variable.
This commit is contained in:
parent
2819b302c3
commit
14c3ff58a4
|
@ -99,7 +99,7 @@ public:
|
||||||
assert(n_threads == 0);
|
assert(n_threads == 0);
|
||||||
assert(threads == nullptr);
|
assert(threads == nullptr);
|
||||||
|
|
||||||
threads = new pthread_t[n_threads];
|
threads = new pthread_t[nworkers];
|
||||||
|
|
||||||
for (int i = 0; i < nworkers; i++) {
|
for (int i = 0; i < nworkers; i++) {
|
||||||
int err;
|
int err;
|
||||||
|
|
Loading…
Reference in New Issue