mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 19:11:51 +00:00
Merge branch 'master' of https://github.com/Ylianst/MeshCentral
This commit is contained in:
commit
976f6d5376
1 changed files with 3 additions and 2 deletions
|
@ -2161,12 +2161,13 @@ function createMeshCore(agent) {
|
||||||
this.xws.write(Buffer.from(JSON.stringify({ action: 'dialogmessage', msg: null })));
|
this.xws.write(Buffer.from(JSON.stringify({ action: 'dialogmessage', msg: null })));
|
||||||
this.xws.write(Buffer.from(JSON.stringify({ action: 'refresh' })));
|
this.xws.write(Buffer.from(JSON.stringify({ action: 'refresh' })));
|
||||||
});
|
});
|
||||||
var zip = require('zip-writer').write({ files: p });
|
this.zip = require('zip-writer').write({ files: p });
|
||||||
zip.pipe(out);
|
this.zip.pipe(out);
|
||||||
break;
|
break;
|
||||||
case 'cancel':
|
case 'cancel':
|
||||||
// TODO: Cancel zip operation if present
|
// TODO: Cancel zip operation if present
|
||||||
//sendConsoleText('Cancel operation');
|
//sendConsoleText('Cancel operation');
|
||||||
|
this.zip.cancel(function () { sendConsoleText('Zip operation was cancelled'); });
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Unknown action, ignore it.
|
// Unknown action, ignore it.
|
||||||
|
|
Loading…
Reference in a new issue