dont call SDPUtil.find_line without the media section

This commit is contained in:
Philipp Hancke 2014-06-22 16:12:56 +02:00
parent 6e55d38ca9
commit 49cf8cba3a
1 changed files with 2 additions and 2 deletions

4
app.js
View File

@ -530,8 +530,8 @@ $(document).bind('setLocalDescription.jingle', function (event, sid) {
directions[type] = (
SDPUtil.find_line(media, 'a=sendrecv') ||
SDPUtil.find_line(media, 'a=recvonly') ||
SDPUtil.find_line('a=sendonly') ||
SDPUtil.find_line('a=inactive') ||
SDPUtil.find_line(media, 'a=sendonly') ||
SDPUtil.find_line(media, 'a=inactive') ||
'a=sendrecv').substr(2);
}
});