Refactor web server (#667)

Fixs #674
This commit is contained in:
cyan317
2023-06-08 13:25:49 +01:00
committed by GitHub
parent 9836e4ceaf
commit 435db339df
35 changed files with 2857 additions and 1789 deletions

View File

@@ -128,8 +128,18 @@ struct AsyncAsioContextTest : virtual public NoLoggerFixture
~AsyncAsioContextTest()
{
work.reset();
if (runner.joinable())
runner.join();
ctx.stop();
runner.join();
}
void
stop()
{
work.reset();
ctx.stop();
if (runner.joinable())
runner.join();
}
protected: