Browse Source

Fix leaked PC

Michelle Bu 11 years ago
parent
commit
4cd3f4b2c9
3 changed files with 2 additions and 2 deletions
  1. 1 1
      dist/peer.js
  2. 0 0
      dist/peer.min.js
  3. 1 1
      lib/negotiator.js

+ 1 - 1
dist/peer.js

@@ -2044,7 +2044,7 @@ Negotiator._startPeerConnection = function(connection) {
     optional = {optional: [{DtlsSrtpKeyAgreement: true}]};
   }
 
-  pc = new RTCPeerConnection(connection.provider.options.config, optional);
+  var pc = new RTCPeerConnection(connection.provider.options.config, optional);
   Negotiator.pcs[connection.type][connection.peer][id] = pc;
 
   Negotiator._setupListeners(connection, pc, id);

File diff suppressed because it is too large
+ 0 - 0
dist/peer.min.js


+ 1 - 1
lib/negotiator.js

@@ -104,7 +104,7 @@ Negotiator._startPeerConnection = function(connection) {
     optional = {optional: [{DtlsSrtpKeyAgreement: true}]};
   }
 
-  pc = new RTCPeerConnection(connection.provider.options.config, optional);
+  var pc = new RTCPeerConnection(connection.provider.options.config, optional);
   Negotiator.pcs[connection.type][connection.peer][id] = pc;
 
   Negotiator._setupListeners(connection, pc, id);

Some files were not shown because too many files changed in this diff