Эх сурвалжийг харах

Set maxRetransmits to 0 when reliable false

ericz 11 жил өмнө
parent
commit
79e10688c5

+ 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){
 (function(exports){
 var binaryFeatures = {};
 var binaryFeatures = {};
 binaryFeatures.useBlobBuilder = (function(){
 binaryFeatures.useBlobBuilder = (function(){
@@ -1970,7 +1970,7 @@ Negotiator.startConnection = function(connection, options) {
       var config = {};
       var config = {};
       if (util.supports.reliable && !options.reliable) {
       if (util.supports.reliable && !options.reliable) {
         // If we have canonical reliable support...
         // If we have canonical reliable support...
-        config = {maxRetransmits: false}
+        config = {maxRetransmits: 0}
       } else if (!util.supports.reliable) {
       } else if (!util.supports.reliable) {
         config = {reliable: options.reliable};
         config = {reliable: options.reliable};
       }
       }

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/peer.min.js


+ 1 - 1
lib/negotiator.js

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

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно