Skip to content
Snippets Groups Projects
Commit ee5804b0 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by gerrit2
Browse files

cq: remove uneeded async call


RingAccount::startOutgoingCall() use an extra ringOnMainThread()
call that gives nothing as forEachDevice() already call the callback
into the main thread.

Reviewed-by: default avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Change-Id: Ib2ff9d3f6274e4b6f8f418ce6670461942a2abd6
parent f482ba8f
No related branches found
No related tags found
No related merge requests found
......@@ -356,7 +356,6 @@ RingAccount::startOutgoingCall(const std::shared_ptr<SIPCall>& call, const std::
// Find listening Ring devices for this account
forEachDevice(dht::InfoHash(toUri), [wCall](const std::shared_ptr<RingAccount>& sthis, const dht::InfoHash& dev)
{
runOnMainThread([=](){
auto call = wCall.lock();
if (not call) return;
RING_WARN("[call %s] Found device %s", call->getCallId().c_str(), dev.toString().c_str());
......@@ -442,7 +441,6 @@ RingAccount::startOutgoingCall(const std::shared_ptr<SIPCall>& call, const std::
});
return false;
});
});
}, [=](bool ok){
if (not ok) {
if (auto call = wCall.lock())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment