Commit 564e7b72 authored by Simon Morlat's avatar Simon Morlat

Fix an issue where an INVITE is sent twice at the same time to a participant.

parent bb0bb01d
......@@ -821,7 +821,9 @@ void ServerGroupChatRoomPrivate::inviteDevice (const shared_ptr<ParticipantDevic
lInfo() << q << ": Inviting device '" << device->getAddress().asString() << "'";
shared_ptr<Participant> participant = const_pointer_cast<Participant>(device->getParticipant()->getSharedFromThis());
shared_ptr<CallSession> session = makeSession(device);
if (device->getState() == ParticipantDevice::State::Joining && session->getState() == CallSession::State::OutgoingProgress){
if (device->getState() == ParticipantDevice::State::Joining && (
session->getState() == CallSession::State::OutgoingProgress
|| session->getState() == CallSession::State::Connected)){
lInfo() << q << ": outgoing INVITE already in progress.";
return;
}
......
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