diff --git a/src/threadpool.h b/src/threadpool.h index 57c21b2e16..3257be2274 100644 --- a/src/threadpool.h +++ b/src/threadpool.h @@ -64,7 +64,7 @@ class CThreadPool // synchronization std::mutex queue_mutex; std::condition_variable condition; - bool stop; + bool stop = false; }; // the constructor just launches some amount of workers