Explorar o código

Add missing declaration of index

Previously client was failing when sending large messages, chunking was failing with index not defined.
jonnyf %!s(int64=6) %!d(string=hai) anos
pai
achega
2b3ac39929
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lib/util.ts

+ 1 - 0
lib/util.ts

@@ -266,6 +266,7 @@ export const util = {
   chunk: function(bl) {
     var chunks = [];
     var size = bl.size;
+    var index;
     var start = (index = 0);
     var total = Math.ceil(size / util.chunkedMTU);
     while (start < size) {