Browse Source

Set maxRetransmits to 0 when reliable false

ericz 11 years ago
parent
commit
79e10688c5
3 changed files with 3 additions and 3 deletions
  1. 2 2
      dist/peer.js
  2. 0 0
      dist/peer.min.js
  3. 1 1
      lib/negotiator.js

+ 2 - 2
dist/peer.js

@@ -1,4 +1,4 @@
-/*! peerjs.js build:0.3.0, development. Copyright(c) 2013 Michelle Bu <michelle@michellebu.com> */
+/*! peerjs.js build:0.3.1, development. Copyright(c) 2013 Michelle Bu <michelle@michellebu.com> */
 (function(exports){
 var binaryFeatures = {};
 binaryFeatures.useBlobBuilder = (function(){
@@ -1970,7 +1970,7 @@ Negotiator.startConnection = function(connection, options) {
       var config = {};
       if (util.supports.reliable && !options.reliable) {
         // If we have canonical reliable support...
-        config = {maxRetransmits: false}
+        config = {maxRetransmits: 0}
       } else if (!util.supports.reliable) {
         config = {reliable: options.reliable};
       }

File diff suppressed because it is too large
+ 0 - 0
dist/peer.min.js


+ 1 - 1
lib/negotiator.js

@@ -30,7 +30,7 @@ Negotiator.startConnection = function(connection, options) {
       var config = {};
       if (util.supports.reliable && !options.reliable) {
         // If we have canonical reliable support...
-        config = {maxRetransmits: false}
+        config = {maxRetransmits: 0}
       } else if (!util.supports.reliable) {
         config = {reliable: options.reliable};
       }

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