diff --git a/res/static/res/script/compiled/home.js b/res/static/res/script/compiled/home.js index 8c02aa5..3dfd364 100644 --- a/res/static/res/script/compiled/home.js +++ b/res/static/res/script/compiled/home.js @@ -103,7 +103,7 @@ var UploadManager = /** @class */ (function () { function UploadManager() { this.uploadQueue = new Array(); this.uploadThreads = new Array(); - this.maxThreads = 2; + this.maxThreads = 3; } UploadManager.prototype.uploadFile = function (file) { console.debug("Adding upload to queue"); @@ -116,7 +116,7 @@ var UploadManager = /** @class */ (function () { } else { for (var i = 0; i < this.uploadThreads.length; i++) { - setTimeout(function () { this.uploadThreads[i].start(); }, 0); + this.uploadThreads[i].start(); } } }; diff --git a/res/static/res/typescript/lib/uploader.ts b/res/static/res/typescript/lib/uploader.ts index b0174f2..375005f 100644 --- a/res/static/res/typescript/lib/uploader.ts +++ b/res/static/res/typescript/lib/uploader.ts @@ -8,7 +8,7 @@ interface FileUpload { class UploadManager { private uploadQueue: Array = new Array(); private uploadThreads: Array = new Array(); - private maxThreads: number = 2; + private maxThreads: number = 3; public uploadFile(file: FileUpload) { console.debug("Adding upload to queue") @@ -21,7 +21,7 @@ class UploadManager { setTimeout(function(){thread.start()}, 0) // Start a new upload thread } else { for (var i = 0; i < this.uploadThreads.length; i++) { - setTimeout(function(){this.uploadThreads[i].start()}, 0) + this.uploadThreads[i].start() } } }