From 602be8f02f637db5b6e2b0408488cc7067de3743 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Wed, 2 Sep 2020 23:06:08 -0700 Subject: [PATCH] Changed moderation from 2 seconds to 1 second --- agents/meshcore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/meshcore.js b/agents/meshcore.js index a6706a27..49712d73 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -2197,7 +2197,7 @@ function createMeshCore(agent) { }); this.zip = require('zip-writer').write({ files: p, basePath: cmd.path }); this.zip.xws = this; - this.zip.on('progress', require('events').moderated(function (name, p) { this.xws.write(Buffer.from(JSON.stringify({ action: 'dialogmessage', msg: 'zippingFile', file: ((process.platform == 'win32') ? (name.split('/').join('\\')) : name), progress: p }))); }, 2000)); + this.zip.on('progress', require('events').moderated(function (name, p) { this.xws.write(Buffer.from(JSON.stringify({ action: 'dialogmessage', msg: 'zippingFile', file: ((process.platform == 'win32') ? (name.split('/').join('\\')) : name), progress: p }))); }, 1000)); this.zip.pipe(out); break; case 'cancel':