浏览代码

onicecandidate removed after dc open

Michelle Bu 12 年之前
父节点
当前提交
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) {

部分文件因为文件数量过多而无法显示