Commit 5afe075f authored by Dan Pascu's avatar Dan Pascu

Silently discard no-op requests

parent 372c5471
...@@ -1028,7 +1028,7 @@ class ServerConference(object): ...@@ -1028,7 +1028,7 @@ class ServerConference(object):
def add_participant(self, contact, contact_uri): def add_participant(self, contact, contact_uri):
if contact_uri.uri in self.participants: if contact_uri.uri in self.participants:
raise ValueError('%r is already part of the conference' % contact_uri.uri) return
participant = ConferenceParticipant(contact, contact_uri) participant = ConferenceParticipant(contact, contact_uri)
participant.request_status = 'Joining' participant.request_status = 'Joining'
self.session.sip_session.conference.add_participant(participant.uri) self.session.sip_session.conference.add_participant(participant.uri)
...@@ -1039,7 +1039,7 @@ class ServerConference(object): ...@@ -1039,7 +1039,7 @@ class ServerConference(object):
def remove_participant(self, participant): def remove_participant(self, participant):
if participant.uri not in self.participants: if participant.uri not in self.participants:
raise ValueError('participant %r is not part of the conference' % participant) return
if participant in self.pending_removals: if participant in self.pending_removals:
return return
participant.request_status = 'Leaving' participant.request_status = 'Leaving'
......
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