Browse Source

Set maxRetransmits to 0 when reliable false

ericz 11 năm trước cách đây
mục cha
commit
79e10688c5
3 tập tin đã thay đổi với 3 bổ sung3 xóa
  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};
       }

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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};
       }

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác