diff --git a/src/server/sock/pool.hpp b/src/server/sock/pool.hpp index 9da4dcd..f30519d 100644 --- a/src/server/sock/pool.hpp +++ b/src/server/sock/pool.hpp @@ -240,12 +240,12 @@ void Pool::Stack::StackThread() { while(this->is_running) { for(auto client = this->clients.begin(); - client != this->clients.end(); + client != this->clients.end() && this->clients.size() > 0; ++client) { if(!this->is_running) break; - + this->clients_mtx.lock(); if(!this->pool->ProcessClient (*client, &this->pool->context, &this->queries)) diff --git a/src/web/index.html b/src/web/index.html index 0134f33..3edcf21 100644 --- a/src/web/index.html +++ b/src/web/index.html @@ -12,6 +12,9 @@