Просмотр исходного кода

onicecandidate removed after dc open

Michelle Bu 12 лет назад
Родитель
Сommit
305dee4fc5
3 измененных файлов с 3 добавлено и 1 удалено
  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) {

Разница между файлами не показана из-за своего большого размера
+ 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) {

Некоторые файлы не были показаны из-за большого количества измененных файлов