Skip to content
Snippets Groups Projects
Commit 973afbcf authored by Sébastien Blin's avatar Sébastien Blin
Browse files

manager: move answer call on io pool

answering and joining a participant can take quite some time,
avoid to lock main thread for that.

Change-Id: I4a2982ba8c35cdc7861ff5db01cffd0678777bea
parent 935b7609
Branches
No related tags found
No related merge requests found
......@@ -1905,7 +1905,7 @@ Manager::incomingCall(Call& call, const std::string& accountId)
auto currentCall = getCurrentCall();
if (account->isRendezVous()) {
runOnMainThread([this, callID] {
dht::ThreadPool::io().run([this, callID] {
answerCall(callID);
auto call = getCallFromCallID(callID);
auto accountId = call->getAccountId();
......@@ -1936,7 +1936,7 @@ Manager::incomingCall(Call& call, const std::string& accountId)
emitSignal<DRing::CallSignal::ConferenceCreated>(conf->getConfID());
});
} else if (pimpl_->autoAnswer_) {
runOnMainThread([this, callID] { answerCall(callID); });
dht::ThreadPool::io().run([this, callID] { answerCall(callID); });
} else if (currentCall) {
// Test if already calling this person
if (currentCall->getAccountId() == accountId
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment