Fixes some typos that cause errors

This commit is contained in:
Zalmoxisus 2015-01-26 16:24:26 +02:00
parent af50bd5b94
commit 567ac23c2c
4 changed files with 4 additions and 4 deletions

View File

@ -154,7 +154,7 @@ var DataChannels =
*/
bindDataChannelListener: function (peerConnection) {
if(!config.openSctp)
retrun;
return;
peerConnection.ondatachannel = this.onDataChannel;

View File

@ -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];
}
});

View File

@ -153,7 +153,7 @@ var DataChannels =
*/
bindDataChannelListener: function (peerConnection) {
if(!config.openSctp)
retrun;
return;
peerConnection.ondatachannel = this.onDataChannel;

View File

@ -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];
}
});