Browse Source

fix #59, createOffer missing err callback

ericz 12 years ago
parent
commit
f999fc8036
3 changed files with 6 additions and 0 deletions
  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);
   });
 };
 

File diff suppressed because it is too large
+ 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);
   });
 };
 

Some files were not shown because too many files changed in this diff