From 7258056e1ca23381bc81e8e55a247a55c88d6e4d Mon Sep 17 00:00:00 2001 From: malloc Date: Wed, 31 Oct 2018 17:19:00 -0500 Subject: [PATCH] sqwoob --- src/server/sock/pool.hpp | 4 +- src/web/index.html | 10 ++- src/web/script.js | 137 ++++++++++++++++++++++++++++++++------- src/web/style.css | 8 +++ 4 files changed, 133 insertions(+), 26 deletions(-) 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 @@