diff --git a/server_http.hpp b/server_http.hpp index afb36c0..769b3de 100644 --- a/server_http.hpp +++ b/server_http.hpp @@ -146,6 +146,8 @@ namespace SimpleWeb { accept(); + if(io_service.stopped()) + io_service.reset(); //If num_threads>1, start m_io_service.run() in (num_threads-1) threads for thread-pooling threads.clear(); for(size_t c=1;c