From ce1c1d3a7678bff65cade33889dac8048e5555c8 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Tue, 11 Dec 2012 06:42:50 -0600 Subject: [PATCH] removes unnecessary check fixes #163 --- src/roles/server.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roles/server.hpp b/src/roles/server.hpp index 1e1f13a393..b50894b449 100644 --- a/src/roles/server.hpp +++ b/src/roles/server.hpp @@ -283,7 +283,7 @@ void server::start_listen(const boost::asio::ip::tcp::endpoint& e,size this->start_accept(); } - if (num_threads < 0 || num_threads > MAX_THREAD_POOL_SIZE) { + if (num_threads > MAX_THREAD_POOL_SIZE) { throw exception("listen called with invalid num_threads value"); }