From 942fcd1bc99a8c7cf18fd8066b3981c9102b4d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Mr=C3=B3z?= Date: Mon, 19 Oct 2020 19:26:46 +0200 Subject: [PATCH] Check if number of threads is valid. --- .gitignore | 2 +- include/crow/http_server.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b176abe12..e4e8d7bd9 100644 --- a/.gitignore +++ b/.gitignore @@ -35,7 +35,7 @@ build crow_all.h # conan.io -build/ +build*/ #Doxygen html/ diff --git a/include/crow/http_server.h b/include/crow/http_server.h index 63e3646d1..7bce24148 100644 --- a/include/crow/http_server.h +++ b/include/crow/http_server.h @@ -31,7 +31,7 @@ namespace crow signals_(io_service_, SIGINT, SIGTERM), tick_timer_(io_service_), handler_(handler), - concurrency_(concurrency), + concurrency_(concurrency == 0 ? 1 : concurrency), port_(port), bindaddr_(bindaddr), middlewares_(middlewares),