Check if number of threads is valid.

This commit is contained in:
Igor Mróz 2020-10-19 19:26:46 +02:00
parent b6f8e805ff
commit 942fcd1bc9
No known key found for this signature in database
GPG Key ID: F32A9B94C1DC1AF2
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -35,7 +35,7 @@ build
crow_all.h crow_all.h
# conan.io # conan.io
build/ build*/
#Doxygen #Doxygen
html/ html/

View File

@ -31,7 +31,7 @@ namespace crow
signals_(io_service_, SIGINT, SIGTERM), signals_(io_service_, SIGINT, SIGTERM),
tick_timer_(io_service_), tick_timer_(io_service_),
handler_(handler), handler_(handler),
concurrency_(concurrency), concurrency_(concurrency == 0 ? 1 : concurrency),
port_(port), port_(port),
bindaddr_(bindaddr), bindaddr_(bindaddr),
middlewares_(middlewares), middlewares_(middlewares),