浏览代码

fix #59, createOffer missing err callback

ericz 12 年之前
父节点
当前提交
f999fc8036
共有 3 个文件被更改,包括 6 次插入0 次删除
  1. 3 0
      dist/peer.js
  2. 0 0
      dist/peer.min.js
  3. 3 0
      lib/connectionmanager.js

+ 3 - 0
dist/peer.js

@@ -1836,6 +1836,9 @@ ConnectionManager.prototype._makeOffer = function() {
       self.emit('error', err);
       util.log('Failed to setLocalDescription, ', err);
     });
+  }, function(err) {
+    self.emit('error', err);
+    util.log('Failed to createOffer, ', err);
   });
 };
 

文件差异内容过多而无法显示
+ 0 - 0
dist/peer.min.js


+ 3 - 0
lib/connectionmanager.js

@@ -166,6 +166,9 @@ ConnectionManager.prototype._makeOffer = function() {
       self.emit('error', err);
       util.log('Failed to setLocalDescription, ', err);
     });
+  }, function(err) {
+    self.emit('error', err);
+    util.log('Failed to createOffer, ', err);
   });
 };
 

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