Explorar o código

Fix leaked PC

Michelle Bu %!s(int64=11) %!d(string=hai) anos
pai
achega
4cd3f4b2c9
Modificáronse 3 ficheiros con 2 adicións e 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);

A diferenza do arquivo foi suprimida porque é 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);

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio