diff --git a/src/lib/upnp/WorkQueue.hxx b/src/lib/upnp/WorkQueue.hxx index 1144634f0..b503e9956 100644 --- a/src/lib/upnp/WorkQueue.hxx +++ b/src/lib/upnp/WorkQueue.hxx @@ -97,6 +97,7 @@ public: assert(n_threads == 0); assert(threads == nullptr); + ok = true; n_threads = nworkers; threads = new pthread_t[n_threads]; @@ -109,7 +110,6 @@ public: } } - ok = true; return true; }