Fixes some typos that cause errors
@ -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 =
@ -570,7 +570,7 @@ module.exports = function(XMPP, eventEmitter) {