[Jingle] Don't wait for all contents to be ready to accept a session
This commit is contained in:
parent
f613c602c5
commit
e4f5bacdb0
|
@ -229,7 +229,7 @@ class JingleSession(object):
|
||||||
"""
|
"""
|
||||||
Return True when all codecs and candidates are ready (for all contents)
|
Return True when all codecs and candidates are ready (for all contents)
|
||||||
"""
|
"""
|
||||||
return (all((content.is_ready() for content in self.contents.itervalues()))
|
return (any((content.is_ready() for content in self.contents.itervalues()))
|
||||||
and self.accepted)
|
and self.accepted)
|
||||||
|
|
||||||
def accept_session(self):
|
def accept_session(self):
|
||||||
|
@ -592,6 +592,7 @@ class JingleSession(object):
|
||||||
# TODO: integrate with __appendContent?
|
# TODO: integrate with __appendContent?
|
||||||
# TODO: parameters 'name', 'content'?
|
# TODO: parameters 'name', 'content'?
|
||||||
for content in self.contents.values():
|
for content in self.contents.values():
|
||||||
|
if content.is_ready():
|
||||||
self.__append_content(jingle, content)
|
self.__append_content(jingle, content)
|
||||||
|
|
||||||
def __session_initiate(self):
|
def __session_initiate(self):
|
||||||
|
|
Loading…
Reference in New Issue