fix for segfault by reserving correct worker count

This commit is contained in:
mod-h2-dev 2015-03-16 17:42:22 +02:00
parent 948d4d43d5
commit 076eefbed6
1 changed files with 1 additions and 1 deletions

View File

@ -1315,7 +1315,7 @@ int main(int argc, char **argv) {
auto start = std::chrono::steady_clock::now(); auto start = std::chrono::steady_clock::now();
std::vector<std::unique_ptr<Worker>> workers; std::vector<std::unique_ptr<Worker>> workers;
workers.reserve(config.nthreads - 1); workers.reserve(config.nthreads);
#ifndef NOTHREADS #ifndef NOTHREADS
std::vector<std::future<void>> futures; std::vector<std::future<void>> futures;