Explorar el Código

Fix leaked PC

Michelle Bu hace 11 años
padre
commit
4cd3f4b2c9
Se han modificado 3 ficheros con 2 adiciones y 2 borrados
  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);

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 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);

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio