Skip to content
Snippets Groups Projects
Commit 14d54f2d authored by Amna Snene's avatar Amna Snene
Browse files

tools: keep tools running even when there are no immediate operations to process.

Change-Id: I47cf15745f2d6f555cab2066d5c2916cf85b843a
parent 74bc0415
No related branches found
No related tags found
No related merge requests found
...@@ -239,6 +239,7 @@ Dnc::Dnc(dht::crypto::Identity identity, ...@@ -239,6 +239,7 @@ Dnc::Dnc(dht::crypto::Identity identity,
void void
Dnc::run() Dnc::run()
{ {
auto work = asio::make_work_guard(*ioContext);
ioContext->run(); ioContext->run();
} }
......
...@@ -256,6 +256,7 @@ dhtnet::Dsh::Dsh(dht::crypto::Identity identity, ...@@ -256,6 +256,7 @@ dhtnet::Dsh::Dsh(dht::crypto::Identity identity,
void void
dhtnet::Dsh::run() dhtnet::Dsh::run()
{ {
auto work = asio::make_work_guard(*ioContext);
ioContext->run(); ioContext->run();
} }
......
...@@ -371,6 +371,7 @@ dhtnet::DvpnClient::DvpnClient(dht::InfoHash peer_id, ...@@ -371,6 +371,7 @@ dhtnet::DvpnClient::DvpnClient(dht::InfoHash peer_id,
void void
dhtnet::Dvpn::run() dhtnet::Dvpn::run()
{ {
auto work = asio::make_work_guard(*ioContext);
ioContext->run(); ioContext->run();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment