Skip to content
Snippets Groups Projects
Commit b4350181 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

connectionmanager: run dht callback on thread pool

Change-Id: I392d74df1c97654a16ff6ce9b30ab6557ebe0c7d
parent 0219051e
No related branches found
No related tags found
No related merge requests found
...@@ -1700,9 +1700,11 @@ ConnectionManager::Impl::storeActiveIpAddress(std::function<void()>&& cb) ...@@ -1700,9 +1700,11 @@ ConnectionManager::Impl::storeActiveIpAddress(std::function<void()>&& cb)
if (hasIpv4 and hasIpv6) if (hasIpv4 and hasIpv6)
break; break;
} }
dht::ThreadPool::io().run([cb = std::move(cb)] {
if (cb) if (cb)
cb(); cb();
}); });
});
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment