Commit 93aa262d authored by Olivier Dion's avatar Olivier Dion

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
......@@ -2800,7 +2800,7 @@ Manager::ManagerPimpl::processIncomingCall(Call& incomCall, const std::string& a
});
} else if (autoAnswer_) {
dht::ThreadPool::io().run([incomCallId] { Manager::instance().answerCall(incomCallId); });
} else if (currentCall) {
} else if (currentCall && currentCall->getCallId() != incomCallId) {
// Test if already calling this person
if (currentCall->getAccountId() == account->getAccountID()
&& currentCall->getPeerNumber() == incomCall.getPeerNumber()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment