Added threads.clear() in ServerBase::start.

This commit is contained in:
eidheim 2015-01-09 13:01:30 +01:00
commit 37e12d0a63

View file

@ -49,6 +49,7 @@ namespace SimpleWeb {
accept();
//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<num_threads;c++) {
threads.emplace_back([this](){
m_io_service.run();