Merge pull request #220 from Zalmoxisus/master
Fixes some typos that cause errors
This commit is contained in:
commit
70bc071cb8
|
@ -154,7 +154,7 @@ var DataChannels =
|
|||
*/
|
||||
bindDataChannelListener: function (peerConnection) {
|
||||
if(!config.openSctp)
|
||||
retrun;
|
||||
return;
|
||||
|
||||
peerConnection.ondatachannel = this.onDataChannel;
|
||||
|
||||
|
|
|
@ -3796,7 +3796,7 @@ module.exports = function(XMPP, eventEmitter) {
|
|||
var self = this;
|
||||
// Remove old ssrcs coming from the jid
|
||||
Object.keys(this.ssrc2jid).forEach(function (ssrc) {
|
||||
if (self.ssrc2jid[ssrc] == jid) {
|
||||
if (self.ssrc2jid[ssrc] == from) {
|
||||
delete self.ssrc2jid[ssrc];
|
||||
}
|
||||
});
|
||||
|
|
|
@ -153,7 +153,7 @@ var DataChannels =
|
|||
*/
|
||||
bindDataChannelListener: function (peerConnection) {
|
||||
if(!config.openSctp)
|
||||
retrun;
|
||||
return;
|
||||
|
||||
peerConnection.ondatachannel = this.onDataChannel;
|
||||
|
||||
|
|
|
@ -570,7 +570,7 @@ module.exports = function(XMPP, eventEmitter) {
|
|||
var self = this;
|
||||
// Remove old ssrcs coming from the jid
|
||||
Object.keys(this.ssrc2jid).forEach(function (ssrc) {
|
||||
if (self.ssrc2jid[ssrc] == jid) {
|
||||
if (self.ssrc2jid[ssrc] == from) {
|
||||
delete self.ssrc2jid[ssrc];
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue