Skip to content
Snippets Groups Projects
Commit 1a6f0125 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Adrien Béraud
Browse files

connectivity: run ice config onInitDone on io threadpool

Change-Id: Ib3f8d163b006e202a20728c8ed22506932b9aaee
parent 6317f9ff
No related branches found
No related tags found
No related merge requests found
......@@ -975,7 +975,7 @@ ConnectionManager::Impl::onDhtPeerRequest(const PeerConnectionRequest& req,
return;
if (!ok) {
JAMI_ERR("Cannot initialize ICE session.");
runOnMainThread([eraseInfo = std::move(eraseInfo)] { eraseInfo(); });
dht::ThreadPool::io().run([eraseInfo = std::move(eraseInfo)] { eraseInfo(); });
return;
}
......@@ -985,7 +985,7 @@ ConnectionManager::Impl::onDhtPeerRequest(const PeerConnectionRequest& req,
if (!shared)
return;
if (!shared->onRequestStartIce(req))
runOnMainThread([eraseInfo = std::move(eraseInfo)] { eraseInfo(); });
eraseInfo();
});
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment