Skip to content
Snippets Groups Projects
Commit 93aa262d authored by Olivier Dion's avatar Olivier Dion
Browse files

manager: Fix double answer of call

If `DRing::acceptWithMedia()` is called within an `IncomingCall` signal handler,
then `processIncomingCall` will wrongly try to answer the same call.

Gitlab: #589

Change-Id: Ica7a5c17852d83e6228e71e0f9a2a83b24cb315b
parent 1cf24333
No related branches found
No related tags found
No related merge requests found
...@@ -2800,7 +2800,7 @@ Manager::ManagerPimpl::processIncomingCall(Call& incomCall, const std::string& a ...@@ -2800,7 +2800,7 @@ Manager::ManagerPimpl::processIncomingCall(Call& incomCall, const std::string& a
}); });
} else if (autoAnswer_) { } else if (autoAnswer_) {
dht::ThreadPool::io().run([incomCallId] { Manager::instance().answerCall(incomCallId); }); dht::ThreadPool::io().run([incomCallId] { Manager::instance().answerCall(incomCallId); });
} else if (currentCall) { } else if (currentCall && currentCall->getCallId() != incomCallId) {
// Test if already calling this person // Test if already calling this person
if (currentCall->getAccountId() == account->getAccountID() if (currentCall->getAccountId() == account->getAccountID()
&& currentCall->getPeerNumber() == incomCall.getPeerNumber()) { && currentCall->getPeerNumber() == incomCall.getPeerNumber()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment