Added threads.clear() in ServerBase::start.
This commit is contained in:
parent
0c96e9f845
commit
37e12d0a63
1 changed files with 1 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ namespace SimpleWeb {
|
||||||
accept();
|
accept();
|
||||||
|
|
||||||
//If num_threads>1, start m_io_service.run() in (num_threads-1) threads for thread-pooling
|
//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++) {
|
for(size_t c=1;c<num_threads;c++) {
|
||||||
threads.emplace_back([this](){
|
threads.emplace_back([this](){
|
||||||
m_io_service.run();
|
m_io_service.run();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue