瀏覽代碼

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);
   });
 };
 

部分文件因文件數量過多而無法顯示