Pārlūkot izejas kodu

onicecandidate removed after dc open

Michelle Bu 12 gadi atpakaļ
vecāks
revīzija
305dee4fc5
3 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 2 1
      dist/peer.js
  2. 0 0
      dist/peer.min.js
  3. 1 0
      lib/connection.js

+ 2 - 1
dist/peer.js

@@ -1,4 +1,4 @@
-/*! peerjs.js build:0.1.0, development. Copyright(c) 2013 Michelle Bu <michelle@michellebu.com> */
+/*! peerjs.js build:0.1.7, development. Copyright(c) 2013 Michelle Bu <michelle@michellebu.com> */
 (function(exports){
 var binaryFeatures = {};
 binaryFeatures.useBlobBuilder = (function(){
@@ -1536,6 +1536,7 @@ DataConnection.prototype._configureDataChannel = function() {
     util.log('Data channel connection success');
     self.open = true;
     self.emit('open');
+    self._pc.onicecandidate = null;
   };
   if (this._reliable) {
     this._reliable.onmessage = function(msg) {

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/peer.min.js


+ 1 - 0
lib/connection.js

@@ -162,6 +162,7 @@ DataConnection.prototype._configureDataChannel = function() {
     util.log('Data channel connection success');
     self.open = true;
     self.emit('open');
+    self._pc.onicecandidate = null;
   };
   if (this._reliable) {
     this._reliable.onmessage = function(msg) {

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels