Skip to content
Snippets Groups Projects
Commit 0f825471 authored by François-Simon Fauteux-Chapleau's avatar François-Simon Fauteux-Chapleau
Browse files

tests: fix UPnPContext shutdown timeout in ICE tests

Change-Id: I9a2ceb1bab75a87c0bf4af24c414a2819899729f
parent baa52d97
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,10 @@ IceTest::setUp()
if (!upnpContext) {
if (!ioContext) {
ioContext = std::make_shared<asio::io_context>();
ioContextRunner = std::make_shared<std::thread>([&] { ioContext->run(); });
ioContextRunner = std::make_shared<std::thread>([&] {
auto work = asio::make_work_guard(*ioContext);
ioContext->run();
});
}
upnpContext = std::make_shared<dhtnet::upnp::UPnPContext>(ioContext, nullptr);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment