Skip to content
Snippets Groups Projects
Commit c03af5f5 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

dhtrunner: fix context.logger handling

parent b03a7732
Branches
Tags
No related merge requests found
......@@ -129,7 +129,7 @@ DhtRunner::run(const Config& config, Context&& context)
cv.notify_all();
});
auto dht = std::unique_ptr<DhtInterface>(new Dht(std::move(context.sock), SecureDht::getConfig(config.dht_config)));
auto dht = std::unique_ptr<DhtInterface>(new Dht(std::move(context.sock), SecureDht::getConfig(config.dht_config), context.logger ? *context.logger : Logger{}));
dht_ = std::unique_ptr<SecureDht>(new SecureDht(std::move(dht), config.dht_config));
#ifdef OPENDHT_PROXY_CLIENT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment